You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,16 @@ In v9, an `undefined` value will be treated the same as if the value is not defi
98
98
99
99
This behavior was changed because the Next.js Build ID is non-deterministic and the release name is injected into client bundles, causing build artifacts to be non-deterministic. This caused issues for some users. Additionally, because it is uncertain whether it will be possible to rely on a Build ID when Turbopack becomes stable, we decided to pull the plug now instead of introducing confusing behavior in the future.
100
100
101
+
### All Meta-Framework SDKs (`@sentry/astro`, `@sentry/nuxt`)
102
+
103
+
- Updated source map generation to respect the user-provided value of your build config, such as `vite.build.sourcemap`:
104
+
105
+
- Explicitly disabled (false): Emit warning, no source map upload.
106
+
- Explicitly enabled (true, 'hidden', 'inline'): No changes, source maps are uploaded and not automatically deleted.
107
+
- Unset: Enable 'hidden', delete `.map` files after uploading them to Sentry.
108
+
109
+
To customize which files are deleted after upload, define the `filesToDeleteAfterUpload` array with globs.
// We don't need to check for AUTH_TOKEN here, because the plugin will pick it up from the env
37
37
if(shouldUploadSourcemaps&&command!=='dev'){
38
-
// TODO(v9): Remove this warning
39
-
if(config?.vite?.build?.sourcemap===false){
40
-
logger.warn(
41
-
"You disabled sourcemaps with the `vite.build.sourcemap` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the `vite.build.sourcemap` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the `vite.build.sourcemap` option to 'hidden' or undefined.",
`[Sentry] Source map generation are currently disabled in your Astro configuration (\`${settingKey}: false\`). This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`hidden\`).`,
`[Sentry] We discovered \`${settingKey}\` is set to \`${viteSourceMap.toString()}\`. Sentry will keep this source map setting. This will un-minify the code snippet on the Sentry Issue page.`,
241
+
);
242
+
});
243
+
}
244
+
}else{
245
+
previousUserSourceMapSetting='unset';
246
+
updatedSourceMapSetting='hidden';
247
+
248
+
consoleSandbox(()=>{
249
+
// eslint-disable-next-line no-console
250
+
console.log(
251
+
`[Sentry] Enabled source map generation in the build options with \`${settingKey}: 'hidden'\`. The source maps will be deleted after they were uploaded to Sentry.`,
0 commit comments