chore: allow disabling source map generation with env var (#12899)

This commit is contained in:
DmytroHryshyn authored and GitHub committed 2023-12-29 18:21:19 +00:00
1 parent 16d1adf990
commit 7579417d7e
3 files changed
+6

No files matched your search

+2
View File
@@ -572,6 +572,8 @@ if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) {
nextConfig["sentry"] = {
autoInstrumentServerFunctions: true,
hideSourceMaps: true,
// disable source map generation for the server code
disableServerWebpackPlugin: !!process.env.SENTRY_DISABLE_SERVER_WEBPACK_PLUGIN,
};
plugins.push(withSentryConfig);