Source Maps

@sentry/nextjs will generate and upload source maps automatically, in order to enable errors to have readable stack traces.

To upload source maps, the @sentry/nextjs SDK uses the Sentry webpack plugin under the hood. See the Manual Configuration page and the Sentry webpack plugin documentation for more details. If you are using Vercel, then you can also use the Vercel integration to upload source maps during deployments automatically.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").