Skip to content

Commit dfe1f72

Browse files
authored
fix(nextjs): Remove webpack:// prefix more broadly from source map sources field (#10641)
1 parent e7b0c8d commit dfe1f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ export function getWebpackPluginOptions(
764764
project: process.env.SENTRY_PROJECT,
765765
authToken: process.env.SENTRY_AUTH_TOKEN,
766766
configFile: hasSentryProperties ? 'sentry.properties' : undefined,
767-
stripPrefix: ['webpack://_N_E/'],
767+
stripPrefix: ['webpack://_N_E/', 'webpack://'],
768768
urlPrefix,
769769
entries: [], // The webpack plugin's release injection breaks the `app` directory - we inject the release manually with the value injection loader instead.
770770
release: getSentryRelease(buildId),

0 commit comments

Comments
 (0)