File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ export function normalizeUserOptions(userOptions: UserOptions) {
48
48
process . env [ "VERCEL" ] &&
49
49
process . env [ "VERCEL_GIT_COMMIT_SHA" ] &&
50
50
process . env [ "VERCEL_GIT_REPO_SLUG" ] &&
51
- process . env [ "VERCEL_GIT_REPO_OWNER" ]
51
+ process . env [ "VERCEL_GIT_REPO_OWNER" ] &&
52
+ // We only want to set commits for the production env because Sentry becomes extremely noisy (eg on slack) for
53
+ // preview environments because the previous commit is always the "stem" commit of the preview/PR causing Sentry
54
+ // to notify you for other people creating PRs.
55
+ process . env [ "VERCEL_TARGET_ENV" ] === "production"
52
56
) {
53
57
options . release . setCommits = {
54
58
shouldNotThrowOnFailure : true ,
You can’t perform that action at this time.
0 commit comments