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.23.0
Framework Version
Next 16.0.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/mizdra/repro-sentry-nextjs-css-source-map
The contents of next.config.ts are as follows:
import{withSentryConfig}from"@sentry/nextjs";importtype{NextConfig}from"next";constnextConfig: NextConfig={/* config options here */};exportdefaultwithSentryConfig(nextConfig,{silent: true,widenClientFileUpload: true,sourcemaps: {deleteSourcemapsAfterUpload: true,},disableLogger: true,});Steps to Reproduce
$ npm i
$ npm run build
$ find .next/static -name "*.map"
Expected Result
The find command returns nothing.
Actual Result
The find command returns the Source Map for .css.
$ find .next/static -name "*.map".next/static/chunks/76bb3875a8d326ec.css.map
Additional Context
The source maps for *.js have been deleted, but the source maps for *.css have not been deleted.
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.23.0
Framework Version
Next 16.0.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/mizdra/repro-sentry-nextjs-css-source-map
The contents of
next.config.tsare as follows:Steps to Reproduce
Expected Result
The
findcommand returns nothing.Actual Result
The
findcommand returns the Source Map for.css.Additional Context
The source maps for
*.jshave been deleted, but the source maps for*.csshave not been deleted.