Unverified Commit 23013317 authored by Andrew Nagy's avatar Andrew Nagy Committed by GitHub

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 (?)
parent 16345f63
......@@ -62,6 +62,7 @@ module.exports = withSourceMaps({
new SentryWebpackPlugin({
include: '.next',
ignore: ['node_modules'],
stripPrefix: ['webpack://_N_E/'],
urlPrefix: '~/_next',
release: COMMIT_SHA,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment