Skip to content

deleteSourcemapsAfterUpload: true does not delete .next/server/** source maps #19235

Description

@rodolfoBee

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

10.38.0

Framework Version

"next": "15.3.2",     "react": "^19.0.0",

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Create a nextJS app
  2. Install the Sentry SDK
  3. add the following to next.config.js:
sourcemaps:{
  deleteSourcemapsAfterUpload:true,
},
  1. Build the app with next build

Expected Result

All sourcemaps produced by the build are deleted after upload

Actual Result

Source maps in .next/server/** are not deleted:

Image

Additional Context

Same issue as reported here for the CSS folder: #18125

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions