Skip to content

fix(v10/nuxt): Delete public source maps before Nitro lists its public assets - #25284

Merged
s1gr1d merged 2 commits into
v10from
sig/v10-nitro-source-maps
Oct 13, 2026
Merged

s1gr1d merged 2 commits into
v10from
sig/v10-nitro-source-maps

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Oct 12, 2026

Copy link
Copy Markdown
Member

Backport of #25267

Fixes #25242

…sets (#25267)

Nitro lists the files in its public dir when it bundles the server. The
SDK deleted the client source maps later, in `close`, so requests for
them returned 500 instead of 404.

Now a plugin on Nitro's build deletes them in `buildStart`. It deletes
only matching files in the public dir. Other matches, like server maps,
are still deleted in `close`: the default glob also matches the SSR
build's maps, which Nitro needs during its build.

Fixes #25242
@s1gr1d
s1gr1d requested a review from a team as a code owner October 12, 2026 12:26
@s1gr1d
s1gr1d requested review from mydea and nicohrubec and removed request for a team October 12, 2026 12:26
@github-actions

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.67 kB added added
@sentry/browser (incl. Tracing) 47.11 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.91 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.9 kB added added
@sentry/browser (incl. Tracing, Replay) 86.52 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.15 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 91.26 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.9 kB added added
@sentry/browser (incl. Feedback) 45.41 kB added added
@sentry/browser (incl. sendFeedback) 33.03 kB added added
@sentry/browser (incl. FeedbackAsync) 38.17 kB added added
@sentry/browser (incl. Metrics) 29.32 kB added added
@sentry/browser (incl. Logs) 29.55 kB added added
@sentry/browser (incl. Metrics & Logs) 30.23 kB added added
@sentry/react 30.03 kB added added
@sentry/react (incl. Tracing) 49.45 kB added added
@sentry/vue 34.04 kB added added
@sentry/vue (incl. Tracing) 49.51 kB added added
@sentry/svelte 28.25 kB added added
CDN Bundle 30.6 kB added added
CDN Bundle (incl. Tracing) 49.07 kB added added
CDN Bundle (incl. Logs, Metrics) 32.17 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.41 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.6 kB added added
CDN Bundle (incl. Tracing, Replay) 86.78 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.05 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.57 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.87 kB added added
CDN Bundle - uncompressed 90.97 kB added added
CDN Bundle (incl. Tracing) - uncompressed 147.97 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 95.68 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 151.95 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 221.03 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.79 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.75 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.49 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.44 kB added added
@sentry/nextjs (client) 52 kB added added
@sentry/sveltekit (client) 47.56 kB added added
@sentry/core/server 81.55 kB added added
@sentry/core/browser 67.64 kB added added
@sentry/node-core 63.87 kB added added
@sentry/node 127.06 kB added added
@sentry/node (incl. diagnostics channel injection) 171.24 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.99 kB added added
@sentry/node - without tracing 75.65 kB added added
@sentry/aws-serverless 84.81 kB added added
@sentry/cloudflare (withSentry) - minified 204.74 kB added added
@sentry/cloudflare (withSentry) 504.74 kB added added

@s1gr1d
s1gr1d merged commit f0fbdeb into v10 Oct 13, 2026
528 of 531 checks passed
@s1gr1d
s1gr1d deleted the sig/v10-nitro-source-maps branch October 13, 2026 07:31
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