Skip to content

fix(v10/nuxt): Do not inject debug IDs into the SSR build - #25094

Merged
s1gr1d merged 2 commits into
v10from
sig/v10-nuxt-sourcemaps-server
Oct 6, 2026
Merged

s1gr1d merged 2 commits into
v10from
sig/v10-nuxt-sourcemaps-server

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Backport of #25080

Nuxt server source maps can still resolve to wrong lines (more info in

Nitro bundles Nuxt's SSR build again. The Sentry Vite plugin also ran on the SSR build, so its debug IDs got into Nitro's output. Many server files used such an ID instead of Nitro's own, and both builds uploaded different maps under that ID.

The Vite plugin now runs only on the client build. Nitro's plugin uploads the server maps, which already point to the original sources.

Fixes #18974

@s1gr1d
s1gr1d requested a review from a team as a code owner October 6, 2026 10:26
@s1gr1d
s1gr1d requested review from chargome and nicohrubec and removed request for a team October 6, 2026 10:26
@s1gr1d s1gr1d changed the title fix(nuxt): Do not inject debug IDs into the SSR build fix(v10/nuxt): Do not inject debug IDs into the SSR build Oct 6, 2026
Nuxt server source maps can still resolve to wrong lines (more info in

Nitro bundles Nuxt's SSR build again. The Sentry Vite plugin also ran on
the SSR build, so its debug IDs got into Nitro's output. Many server
files used such an ID instead of Nitro's own, and both builds uploaded
different maps under that ID.

The Vite plugin now runs only on the client build. Nitro's plugin
uploads the server maps, which already point to the original sources.

The e2e test now checks that each shipped file has one debug ID,
resolving to exactly one map generated for that file.

Fixes #18974
@s1gr1d
s1gr1d force-pushed the sig/v10-nuxt-sourcemaps-server branch from 7d5f283 to e9631e2 Compare October 6, 2026 12:01
@s1gr1d
s1gr1d enabled auto-merge (squash) October 6, 2026 12:05
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.23 kB added added
@sentry/browser - with treeshaking flags 26.66 kB added added
@sentry/browser (incl. Tracing) 47.12 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.91 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.89 kB added added
@sentry/browser (incl. Tracing, Replay) 86.45 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.08 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 91.18 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.81 kB added added
@sentry/browser (incl. Feedback) 45.4 kB added added
@sentry/browser (incl. sendFeedback) 33.03 kB added added
@sentry/browser (incl. FeedbackAsync) 38.16 kB added added
@sentry/browser (incl. Metrics) 29.31 kB added added
@sentry/browser (incl. Logs) 29.54 kB added added
@sentry/browser (incl. Metrics & Logs) 30.23 kB added added
@sentry/react 30.02 kB added added
@sentry/react (incl. Tracing) 49.43 kB added added
@sentry/vue 34.03 kB added added
@sentry/vue (incl. Tracing) 49.5 kB added added
@sentry/svelte 28.25 kB added added
CDN Bundle 30.58 kB added added
CDN Bundle (incl. Tracing) 49.07 kB added added
CDN Bundle (incl. Logs, Metrics) 32.16 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.39 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.52 kB added added
CDN Bundle (incl. Tracing, Replay) 86.69 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.95 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.51 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.78 kB added added
CDN Bundle - uncompressed 90.96 kB added added
CDN Bundle (incl. Tracing) - uncompressed 147.96 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 95.67 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 151.94 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 220.7 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.46 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.43 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.16 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.12 kB added added
@sentry/nextjs (client) 51.96 kB added added
@sentry/sveltekit (client) 47.57 kB added added
@sentry/core/server 81.14 kB added added
@sentry/core/browser 67.27 kB added added
@sentry/node-core 63.87 kB added added
@sentry/node 126.57 kB added added
@sentry/node (incl. diagnostics channel injection) 170.72 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.98 kB added added
@sentry/node - without tracing 75.63 kB added added
@sentry/aws-serverless 84.81 kB added added
@sentry/cloudflare (withSentry) - minified 204.66 kB added added
@sentry/cloudflare (withSentry) 504.61 kB added added

Comment thread packages/nuxt/src/vite/sourceMaps.ts
@s1gr1d
s1gr1d merged commit 2cf2dd0 into v10 Oct 6, 2026
75 of 84 checks passed
@s1gr1d
s1gr1d deleted the sig/v10-nuxt-sourcemaps-server branch October 6, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants