File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,11 @@ export function constructWebpackConfigFunction(
349349 }
350350 }
351351
352- // We don't want to do any webpack plugin stuff OR any source maps stuff in dev mode.
352+ const isStaticExport = userNextConfig ?. output === 'export' ;
353+
354+ // We don't want to do any webpack plugin stuff OR any source maps stuff in dev mode or for the server on static-only builds.
353355 // Symbolication for dev-mode errors is done elsewhere.
354- if ( ! isDev ) {
356+ if ( ! ( isDev || ( isStaticExport && isServer ) ) ) {
355357 // eslint-disable-next-line @typescript-eslint/no-explicit-any
356358 const { sentryWebpackPlugin } = loadModule < { sentryWebpackPlugin : any } > ( '@sentry/webpack-plugin' , module ) ?? { } ;
357359
You can’t perform that action at this time.
0 commit comments