getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
8.01k stars 1.58k forks source link

Add release config to @sentry/nuxt sourceMapUploadOptions #14337

Open jaap3 opened 4 days ago

jaap3 commented 4 days ago

Problem Statement

I'm trying out the @sentry/nuxt module and noticed that the sourcemaps are uploaded with a version set to whatever the git HEAD commit is at. I'd like to be able to set the version to something more representative, preferably the same version as we set in the Sentry.init call.

Solution Brainstorm

I've now set it using:

unstable_sentryBundlerPluginOptions: {
  release: {
    name: `${PACKAGE}@${VERSION}`,
  },
}
lforst commented 4 days ago

Thanks for writing in. I backlogged this. It very much ties into https://github.com/getsentry/sentry-javascript/issues/14212.