Skip to content

Commit 8867485

Browse files
committed
add the sentry env variables to the sentryWebpackPluginOptions object
1 parent c9c82ea commit 8867485

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

next.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ const sentryWebpackPluginOptions = {
2727
// Additional config options for the Sentry Webpack plugin. Keep in mind that
2828
// the following options are set automatically, and overriding them is not
2929
// recommended:
30-
// release, url, org, project, authToken, configFile, stripPrefix,
31-
// urlPrefix, include, ignore
30+
// release, url, configFile, stripPrefix, urlPrefix, include, ignore
3231

3332
silent: true, // Suppresses all logs
33+
project: process.env.SENTRY_PROJECT,
34+
org: process.env.SENTRY_ORG,
35+
authToken: process.env.SENTRY_AUTH_TOKEN,
36+
setCommits: {
37+
auto: true,
38+
}
3439
// For all available options, see:
3540
// https://github.com/getsentry/sentry-webpack-plugin#options.
3641
}

0 commit comments

Comments
 (0)