René's URL Explorer Experiment


Title: @sentry/nuxt: maps removed by filesToDeleteAfterUpload stay in Nitro's public-asset manifest, so /_nuxt/*.js.map returns 500 instead of 404 · Issue #25242 · getsentry/sentry-javascript · GitHub

Open Graph Title: @sentry/nuxt: maps removed by filesToDeleteAfterUpload stay in Nitro's public-asset manifest, so /_nuxt/*.js.map returns 500 instead of 404 · Issue #25242 · getsentry/sentry-javascript

X Title: @sentry/nuxt: maps removed by filesToDeleteAfterUpload stay in Nitro's public-asset manifest, so /_nuxt/*.js.map returns 500 instead of 404 · Issue #25242 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues (related: #13632, #13993; neither covers the manifest) I have reviewed the documentation I am using the latest SDK release How do you use Sentry? Sentry SaaS (sentry...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues (related: #13632, #13993; neither covers the manifest) I have reviewed the documentation I am using the latest SDK release Ho...

X Description: Is there an existing issue for this? I have checked for existing issues (related: #13632, #13993; neither covers the manifest) I have reviewed the documentation I am using the latest SDK release Ho...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25242

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/nuxt: maps removed by filesToDeleteAfterUpload stay in Nitro's public-asset manifest, so /_nuxt/*.js.map returns 500 instead of 404","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues (related: #13632, #13993; neither covers the manifest)\n- [x] I have reviewed the documentation\n- [x] I am using the latest SDK release\n\n### How do you use Sentry?\n\nSentry SaaS (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nuxt\n\n### SDK Version\n\n11.6.0 (also reproduced on 10.75.0)\n\n### Framework Version\n\nNuxt 3.21.11, nitropack 2.13.4, `node-server` preset, Node 22\n\n### Link to Sentry event\n\nn/a\n\n### Reproduction Example/SDK Setup\n\n```ts\n// nuxt.config.ts\nexport default defineNuxtConfig({\n  modules: ['@sentry/nuxt/module'],\n  sourcemap: { client: 'hidden' },\n  sentry: {\n    org: '...',\n    project: '...',\n    sourcemaps: {\n      filesToDeleteAfterUpload: ['.output/public/**/*.map'],\n    },\n  },\n});\n```\n\nNo auth token is needed to reproduce, because the deletion runs either way.\n\n### Steps to Reproduce\n\n1. `nuxt build`\n2. `find .output/public -name '*.map'` finds nothing, because the maps were deleted.\n3. `grep -o '\"/_nuxt/[^\"]*\\.js\\.map\"' .output/server/chunks/nitro/nitro.mjs | head` still lists every map in Nitro's public-asset manifest.\n4. `node .output/server/index.mjs`\n5. Request a real chunk with `curl -i localhost:3000/_nuxt/\u003cchunk>.js`, then the same URL with `.map` appended: `curl -i localhost:3000/_nuxt/\u003cchunk>.js.map`.\n\n### Expected Result\n\nThe `.map` request returns 404, the same as an unknown path (`/_nuxt/doesnotexist.js.map` already returns 404).\n\n### Actual Result\n\nThe `.map` request returns 500, with the server log showing:\n\n```\n[request error] [unhandled] [GET] http://localhost:3000/_nuxt/\u003cchunk>.js.map\n H3Error: ENOENT: no such file or directory, open '.../.output/public/_nuxt/\u003cchunk>.js.map'\n```\n\nThe 500 response also carries the deleted file's ETag, its `Content-Length`, and `Cache-Control: public, max-age=31536000, immutable`, all taken from the stale manifest entry.\n\n### Additional Context\n\nOrdering problem:\n\n1. `@nuxt/nitro-server` copies the client build into `.output/public` in Nitro's `rollup:before` hook (`dist/index.mjs:780-783`: `copyPublicAssets`, then `nitro:build:public-assets`).\n2. Nitro then globs `.output/public` into the virtual `#nitro-internal-virtual/public-assets-data` manifest (`nitropack/dist/rollup/index.mjs` ~L1232) and bundles it into the server.\n3. `@sentry/nuxt` deletes the files in Nuxt's `close` hook, after the server bundle exists (`build/module/module.mjs` L620-623 in 11.6.0, `deleteSourceMapsAfterBuild`).\n4. At runtime the static handler finds the manifest entry, sets headers, and calls `readAsset`, which runs `fsp.readFile` and throws ENOENT. That surfaces as a 500 (`nitropack/dist/runtime/internal/static.mjs`).\n\nThe automatic deletion fallback (when `filesToDeleteAfterUpload` is unset) uses the same `close` hook, so it should behave the same way.\n\n`hidden` maps (#13993) stop browsers from requesting maps, but crawlers and scanners still request them. They get 500s, and Sentry's own server SDK reports those 500s as errors. Another project diagnosed the same chain independently after a bot requested about 47 maps and triggered an alert burst (kodes-agency/reputation-key#631).\n\nWorkaround we use, which removes the maps after the copy and before the manifest is built:\n\n```ts\nhooks: {\n  async 'nitro:build:public-assets'(nitro) {\n    const { readdir, rm } = await import('node:fs/promises');\n    const { join } = await import('node:path');\n    const dir = nitro.options.output.publicDir;\n    const files = await readdir(dir, { recursive: true });\n    await Promise.all(files.filter(f => f.endsWith('.map')).map(f => rm(join(dir, f))));\n  },\n},\n```\n\nThe client upload is unaffected because the Vite plugin uploads from `.nuxt/dist/client` at `writeBundle`, before Nitro runs. We confirmed in production that the upload succeeds and the URLs return 404. `nitro.ignore: ['**/*.map']` does not work, because Nuxt appends `!\u003cbuildDir>/dist/client/_nuxt/**/*` to `nitro.ignore` (`@nuxt/nitro-server/dist/index.mjs:400`).\n\n**Suggested fix:** for client maps, have the module delete in `nitro:build:public-assets` (or exclude `*.map` when Nitro builds the manifest) instead of in `close`. Server maps can keep the current timing.\n\n### Priority\n\nLow. Nothing leaks, but it produces stray 500s and alert noise.\n","author":{"url":"https://github.com/mketiku","@type":"Person","name":"mketiku"},"datePublished":"2026-10-09T17:21:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/25242"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5fd58698-641f-ffa7-7e5d-d286052fb0f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE344:1F2E:59E09D:7BD474:6B0455C1
html-safe-noncef2690cfc12698286b9d68b62c78c4bea1eb3ac20777b0c01c9b0e35c1a047f39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzQ0OjFGMkU6NTlFMDlEOjdCRDQ3NDo2QjA0NTVDMSIsInZpc2l0b3JfaWQiOiI0MDk2ODA1NjUwMDE1OTk5NDI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6667c874fa4836b1ca81050595f1306ee53e36bed7f8de02d8baa8efe170577f
hovercard-subject-tagissue:5782009209
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25242/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71f1316cf22e8f4a403262a83be8a8b5c7111cc39c799f39d538f2d06768ad17/getsentry/sentry-javascript/issues/25242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71f1316cf22e8f4a403262a83be8a8b5c7111cc39c799f39d538f2d06768ad17/getsentry/sentry-javascript/issues/25242
og:image:altIs there an existing issue for this? I have checked for existing issues (related: #13632, #13993; neither covers the manifest) I have reviewed the documentation I am using the latest SDK release Ho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemketiku
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/25242#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25242
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25242
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25242
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25242
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25242
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25242
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25242
#25267https://github.com/getsentry/sentry-javascript/pull/25267
@sentry/nuxt: maps removed by filesToDeleteAfterUpload stay in Nitro's public-asset manifest, so /_nuxt/*.js.map returns 500 instead of 404https://github.com/getsentry/sentry-javascript/issues/25242#top
#25267https://github.com/getsentry/sentry-javascript/pull/25267
https://github.com/JPeer264
https://github.com/s1gr1d
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Nuxthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Nuxt%22
https://github.com/mketiku
mketikuhttps://github.com/mketiku
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#issue-5782009209
NuxtJS: Source map deletion after upload #13632https://github.com/getsentry/sentry-javascript/issues/13632
[v9] Respect user-provided sourcemap generation settings #13993https://github.com/getsentry/sentry-javascript/issues/13993
#13993https://github.com/getsentry/sentry-javascript/issues/13993
kodes-agency/reputation-key#631https://github.com/kodes-agency/reputation-key/pull/631
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-32895439890
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33011169061
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#issuecomment-6085806339
Linear Codehttps://linear.app
JS-3904https://linear.app/getsentry/issue/JS-3904
github-actionshttps://github.com/apps/github-actions
Nuxthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Nuxt%22
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-32895446837
linear-codehttps://github.com/apps/linear-code
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Oct 9, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-32895478106
JPeer264https://github.com/JPeer264
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33026960327
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#issuecomment-6119993688
#25080https://github.com/getsentry/sentry-javascript/pull/25080
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33028084276
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242
s1gr1dhttps://github.com/s1gr1d
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33028117847
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25267https://github.com/getsentry/sentry-javascript/pull/25267
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33045486899
jkubohttps://github.com/jkubo
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33053639871
fix(nuxt): Delete public source maps before Nitro lists its public as…https://github.com/jkubo/sentry-javascript/commit/36fdc3f273841be909f3eecf911025dfdd6fed2a
https://docs.github.com/articles/closing-issues-via-commit-messages
36fdc3fhttps://github.com/jkubo/sentry-javascript/commit/36fdc3f273841be909f3eecf911025dfdd6fed2a
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#issuecomment-6127326043
GitHub Actionshttps://help.github.com/en/actions
#25267https://github.com/getsentry/sentry-javascript/pull/25267
11.7.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.7.0
https://github.com/mketiku
mketikuhttps://github.com/mketiku
on Oct 12, 2026https://github.com/getsentry/sentry-javascript/issues/25242#issuecomment-6129674390
s1gr1dhttps://github.com/s1gr1d
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25242#event-33111090897
fix(v10/nuxt): Delete public source maps before Nitro lists its publi…https://github.com/getsentry/sentry-javascript/commit/f0fbdebb046263246f96fc37efb30d6cd34b1a67
f0fbdebhttps://github.com/getsentry/sentry-javascript/commit/f0fbdebb046263246f96fc37efb30d6cd34b1a67
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/25242
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25242
JPeer264https://github.com/JPeer264
s1gr1dhttps://github.com/s1gr1d
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Nuxthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Nuxt%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.