Skip to content

Having some trouble with sourcemaps with Next.js #8899

Answered by lforst
philwolstenholme asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, so if you want to use a custom client, setting up source maps for Next.js is gonna be quite a bit more painful:

You will have to turn off the Sentry Webpack plugin that ships with the Next.js SDK (disableClientFileUpload: true in next.config.js) and follow the guide here: https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/webpack/ (You might also need to tweak some plugin settings)

If you want the painless path I recommend ditching the custom client and just going with Sentry.init().

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@philwolstenholme
Comment options

@lforst
Comment options

Answer selected by philwolstenholme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants