@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.