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) {
4848 process . env [ "VERCEL" ] &&
4949 process . env [ "VERCEL_GIT_COMMIT_SHA" ] &&
5050 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"
5256 ) {
5357 options . release . setCommits = {
5458 shouldNotThrowOnFailure : true ,
You can’t perform that action at this time.
0 commit comments