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
{{ message }}
Repository navigation
@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false, causes next-sitemap to fail during build #15133
// Next config using withSentryConfigmodule.exports=withSentryConfig(nextConfig,{org: 'orgName',project: 'products',// Only print logs for uploading source maps in CIsilent: !process.env.CI,// Upload a larger set of source maps for prettier stack traces (increases build time)widenClientFileUpload: true,// Hides source maps from generated client bundleshideSourceMaps: true,// Automatically tree-shake Sentry logger statements to reduce bundle sizedisableLogger: true,// also fails without this whole section being present, and it also used to work without it being there at allsourcemaps: {// Ensure sourcemaps are left behind by Sentry so that next-sitemap can use themdeleteSourcemapsAfterUpload: false,},});
Steps to Reproduce
Set up a Next project with Sentry integration.
Add next-sitemap as a dependency, e.g. pnpm add next-sitemap / npm install next-sitemap.
changed the title [-]@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false[/-][+]@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false, causes next-sitemap to fail during build[/+]on Jan 22, 2025
Apologies, when trying to narrow this down further it seems like we also upgraded @sentry/webpack-plugin from 2.23.0 to 3.0.0, and that may be actual cause of the issue. I'll file a separate issue when I can confirm this.
Activity
[-]@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false[/-][+]@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false, causes next-sitemap to fail during build[/+]jqrd commentedon Jan 22, 2025
There seems to be one recent change in the area, from the title it seems to be specifically for sveltekit but I haven't dug into it: #14963
lforst commentedon Jan 22, 2025
Hi, I cannot reproduce what you are describing. Would you mind sharing a reproduction repo we could pull to look at this?
jqrd commentedon Jan 22, 2025
Apologies, when trying to narrow this down further it seems like we also upgraded
@sentry/webpack-pluginfrom 2.23.0 to 3.0.0, and that may be actual cause of the issue. I'll file a separate issue when I can confirm this.