Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Fix sourcemaps association #1630

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Fix sourcemaps association #1630

merged 2 commits into from
Feb 17, 2024

Conversation

mnvr
Copy link
Member

@mnvr mnvr commented Feb 17, 2024

The reason why Sentry was not showing sourcemaps was because the release value used by the Sentry Webpack plugin at buildtime (autogenerated) was different from the release value that Sentry.init at runtime (git SHA).

We don't need to set `productionBrowserSourceMaps` because the Sentry Webpack
plugin always assumes that to be true.

- @sentry/nextjs withSentryConfig enables productionBrowserSourceMaps, in the
  end, assets sourcemap is open to the public
  vercel/next.js#32920

- @sentry/nextjs will generate and upload source maps automatically
  https://docs.sentry.io/platforms/javascript/guides/nextjs/sourcemaps/
@mnvr mnvr merged commit cbf107f into main Feb 17, 2024
4 checks passed
@mnvr mnvr deleted the sourcemaps branch February 17, 2024 10:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant