Skip to content

Commit

Permalink
fix(nextjs): Remove webpack:// prefix more broadly from source map …
Browse files Browse the repository at this point in the history
…`sources` field (#10641)
  • Loading branch information
lforst authored Feb 13, 2024
1 parent e7b0c8d commit dfe1f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export function getWebpackPluginOptions(
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
configFile: hasSentryProperties ? 'sentry.properties' : undefined,
stripPrefix: ['webpack://_N_E/'],
stripPrefix: ['webpack://_N_E/', 'webpack://'],
urlPrefix,
entries: [], // The webpack plugin's release injection breaks the `app` directory - we inject the release manually with the value injection loader instead.
release: getSentryRelease(buildId),
Expand Down

0 comments on commit dfe1f72

Please sign in to comment.