Skip to content

Commit e494b3a

Browse files
remove source maps from non-prod
1 parent 8d65f12 commit e494b3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ module.exports = withSentryConfig(
3636
project: process.env.SENTRY_PROJECT,
3737
authToken: process.env.SENTRY_AUTH_TOKEN,
3838

39+
// Source maps are too slow for non-prod builds.
40+
sourcemaps: {
41+
disable: process.env.VERCEL_ENV === "preview"
42+
},
43+
3944
// Only print logs for uploading source maps in CI
4045
silent: !process.env.CI,
4146

0 commit comments

Comments
 (0)