@sentry/nextjs will generate and upload source maps automatically, in order to enable errors to have readable stacktraces.
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.