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
deleteSourcemapsAfterUpload: true does not delete CSS source maps #18125
Even if that is the expected behavior, I think many users will be confused. To prevent the original CSS code from being leaked, we must run rm -rf .next/static/**/*.css.map. However, I don't think many people will realize they need to do that.
Hey @mizdra thanks for reporting this. We indeed to not delete these maps, we only look for any sort of js files. I agree with you that a more sensible default would be to also delete map files for css. We'll update that!
Activity
linear commentedon Nov 9, 2025
JS-1130
mizdra commentedon Nov 10, 2025
Could this be expected behavior rather than a bug? Since CSS source maps aren't uploaded to Sentry, is the deletion skipped?
mizdra commentedon Nov 10, 2025
Even if that is the expected behavior, I think many users will be confused. To prevent the original CSS code from being leaked, we must run
rm -rf .next/static/**/*.css.map. However, I don't think many people will realize they need to do that.chargome commentedon Nov 10, 2025
Hey @mizdra thanks for reporting this. We indeed to not delete these maps, we only look for any sort of js files. I agree with you that a more sensible default would be to also delete map files for css. We'll update that!
fix(nextjs): Delete css map files (getsentry#18131)
mizdra commentedon Nov 10, 2025
Thanks for fixing it so quickly!
github-actions commentedon Nov 10, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #18131, which was included in the 10.24.0 release.