File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
2525
2626if (
2727 process . env . NODE_ENV !== 'development' &&
28- ( ! process . env . NEXT_PUBLIC_SENTRY_DSN || ! process . env . SENTRY_DSN )
28+ ( ! process . env . NEXT_PUBLIC_SENTRY_DSN ||
29+ ! process . env . SENTRY_DSN ||
30+ ! process . env . SENTRY_WEBPACK_PLUGIN_AUTH_TOKEN )
2931) {
3032 throw new Error (
31- 'Missing required environment variables: NEXT_PUBLIC_SENTRY_DSN and SENTRY_DSN must be set in production'
33+ 'Missing required environment variables: NEXT_PUBLIC_SENTRY_DSN, SENTRY_DSN and SENTRY_WEBPACK_PLUGIN_AUTH_TOKEN must be set in production'
3234 ) ;
3335}
3436
@@ -67,6 +69,7 @@ const nextConfig = {
6769module . exports = withSentryConfig ( nextConfig , {
6870 org : 'sentry' ,
6971 project : process . env . NEXT_PUBLIC_DEVELOPER_DOCS ? 'develop-docs' : 'docs' ,
72+ authToken : process . env . SENTRY_WEBPACK_PLUGIN_AUTH_TOKEN ,
7073
7174 // Suppresses source map uploading logs during build
7275 silent : ! process . env . CI ,
You can’t perform that action at this time.
0 commit comments