@sentry/nextjs v8.49.0 deletes sourcemap files by default, disregards sourcemaps.deleteFilesAfterUpload:false, causes next-sitemap to fail during build #15133
Labels
Package: nextjs
Issues related to the Sentry Nextjs SDK
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.49.0
Framework Version
Next 15.1.5
Link to Sentry event
No response
Reproduction Example/SDK Setup
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
.Add a
next-sitemap.config.js
file:Add a postbuild step in package.json:
Set a valid
SENTRY_DSN
env variable value and runpnpm build
/npm build
.Expected Result
Postbuild step succeeds in generating the sitemap -- this is working on v8.48.0
Actual Result
Error in postbuild step:
The text was updated successfully, but these errors were encountered: