Skip to content

Commit 81b4da3

Browse files
committed
fix(nextjs): delete sentry config when not using sentry (development) to suppress warning
1 parent dcd3cc9 commit 81b4da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ nextConfig = withRoutes(nextConfig);
7575
nextConfig = process.env.MONOREPO ? withTM(nextConfig) : nextConfig;
7676
nextConfig = process.env.SENTRY_AUTH_TOKEN
7777
? withSentryConfig(nextConfig, sentryWebpackPluginOptions)
78-
: nextConfig;
78+
: (delete nextConfig.sentry, sentry); // Need to remove sentry config if not using in order to suppress warning
7979

8080
export default nextConfig;

0 commit comments

Comments
 (0)