We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 109a52a commit 95e5ccaCopy full SHA for 95e5cca
packages/bundler-plugin-core/src/options-mapping.ts
@@ -48,7 +48,11 @@ export function normalizeUserOptions(userOptions: UserOptions) {
48
process.env["VERCEL"] &&
49
process.env["VERCEL_GIT_COMMIT_SHA"] &&
50
process.env["VERCEL_GIT_REPO_SLUG"] &&
51
- process.env["VERCEL_GIT_REPO_OWNER"]
+ 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"
56
) {
57
options.release.setCommits = {
58
shouldNotThrowOnFailure: true,
0 commit comments