Skip to content

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

@rodolfoBee

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.

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions