chore: allow disabling source map generation with env var (#12899)
This commit is contained in:
parent
16d1adf990
commit
7579417d7e
|
@ -322,3 +322,6 @@ APP_ROUTER_SETTINGS_TEAMS_ENABLED=0
|
|||
APP_ROUTER_GETTING_STARTED_STEP_ENABLED=0
|
||||
APP_ROUTER_APPS_ENABLED=0
|
||||
APP_ROUTER_VIDEO_ENABLED=0
|
||||
|
||||
# disable setry server source maps
|
||||
SENTRY_DISABLE_SERVER_WEBPACK_PLUGIN=1
|
|
@ -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);
|
||||
|
|
|
@ -318,6 +318,7 @@
|
|||
"SENDGRID_API_KEY",
|
||||
"SENDGRID_EMAIL",
|
||||
"SENDGRID_SYNC_API_KEY",
|
||||
"SENTRY_DISABLE_SERVER_WEBPACK_PLUGIN",
|
||||
"SLACK_CLIENT_ID",
|
||||
"SLACK_CLIENT_SECRET",
|
||||
"SLACK_SIGNING_SECRET",
|
||||
|
|
Loading…
Reference in New Issue
Block a user