Add stripPrefix of webpack://_N_E/ (#15955)
In with-sentry add stripPrefix of `webpack://_N_E/`. This removes the `webpack://_N_E/` prefix from the stack trace which will help Sentry to understand what is "App Only" vs "Full" I'll fully tested calling errors in browser and the stack traces are still aligned and linked correctly. This just gets rid of the extra data in the front which seems to be the same for everyone and I believe it comes from webpack 5 (?)
This commit is contained in:
parent
16345f631e
commit
2301331703
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ module.exports = withSourceMaps({
|
|||
new SentryWebpackPlugin({
|
||||
include: '.next',
|
||||
ignore: ['node_modules'],
|
||||
stripPrefix: ['webpack://_N_E/'],
|
||||
urlPrefix: '~/_next',
|
||||
release: COMMIT_SHA,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue