Skip to content

feat(nextjs): Add deleteSourcemapsAfterUpload option #12457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 21, 2024

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Jun 11, 2024

Will need to wait on: getsentry/sentry-javascript-bundler-plugins#547


Adds an easy way to delete sourcemaps immediately after uploading them:

module.exports = withSentryConfig(nextConfig, {
  sourcemaps: {
    deleteSourcemapsAfterUpload: true,
  },
});

Fixes #8600
Fixes #4489

@lforst lforst merged commit 250b6d3 into develop Jun 21, 2024
113 checks passed
@lforst lforst deleted the lforst-deletefilesafterupload branch June 21, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@sentry/nextjs doesn't respect sourcemaps.filesToDeleteAfterUpload [nextjs] Original source code visible in browser dev tools
2 participants