chore: allow disabling source map generation with env var (#12899)
This commit is contained in:
1 parent
16d1adf990
commit
7579417d7e
3 files changed
+6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user