Repository navigation
Conversation
Nitro's source map minification runs after the bundler writes the maps. On Nitro 3 it deletes sourcesContent, which overrides the module's sourcemapExcludeSources: false. Set nitro.experimental.sourcemapMinify to false so Sentry can show the server source. Fixes #25322
s1gr1d
marked this pull request as ready for review
October 13, 2026 15:29
s1gr1d
requested review from
JPeer264,
mydea and
nicohrubec
and removed request for
a team
October 13, 2026 15:29
Member
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3e25ccd. Configure here.
JPeer264
added this pull request to stack #25366
October 14, 2026 13:08
JPeer264
approved these changes
Oct 14, 2026
JPeer264
left a comment
Member
There was a problem hiding this comment.
LGTM. I added a PR in the stack that also fixes that for Cloudflare.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Nuxt 5 (Nitro 3), the uploaded server source maps have no
sourcesContent, so Sentry cannot show the source code for server frames. Nitro'snitro:sourcemapplugin deletessourcesContentingenerateBundle, after the bundler wrote it, so the module'ssourcemapExcludeSources: falsehas no effect. The module now also setsnitro.experimental.sourcemapMinify: false. Nuxt 5 passes thenitro:configresult directly tocreateNitro, so the option reaches Nitro 3.The setting is not limited to Nitro 3. Nitro 2 has the same option, and its plugin clears
mappingsof every server map with at least onenode_modulessource. On Nuxt 3 and 4, such maps now keep their mappings. In thenuxt-4-sourcemapsapp, this applies to 7 of 16 server maps. The uploaded maps get larger, but by default Sentry deletes them after the upload.The setting is always applied, also when the user set it. Nitro types the option as
sourcemapMinify?: false, sofalseis the only value a user can set.The
SERVER_MARKERassertion innuxt-5-sourcemapsis enabled again.Fixes #25322