Skip to content

Commit a432ee5

Browse files
committed
let's not require it
1 parent b872d37 commit a432ee5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

next.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
2525

2626
if (
2727
process.env.NODE_ENV !== 'development' &&
28-
(!process.env.NEXT_PUBLIC_SENTRY_DSN ||
29-
!process.env.SENTRY_DSN ||
30-
!process.env.SENTRY_WEBPACK_PLUGIN_AUTH_TOKEN)
28+
(!process.env.NEXT_PUBLIC_SENTRY_DSN || !process.env.SENTRY_DSN)
3129
) {
3230
throw new Error(
33-
'Missing required environment variables: NEXT_PUBLIC_SENTRY_DSN, SENTRY_DSN and SENTRY_WEBPACK_PLUGIN_AUTH_TOKEN must be set in production'
31+
'Missing required environment variables: NEXT_PUBLIC_SENTRY_DSN and SENTRY_DSN must be set in production'
3432
);
3533
}
3634

0 commit comments

Comments
 (0)