Title: [Nuxt] Inject debug IDs and release only at build-end · Issue #18974 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Nuxt] Inject debug IDs and release only at build-end · Issue #18974 · getsentry/sentry-javascript
X Title: [Nuxt] Inject debug IDs and release only at build-end · Issue #18974 · getsentry/sentry-javascript
Description: Description Problem Nuxt runs through the build twice (client and server). Nuxt builds client-side Nuxt builds server-side Now all client and server files in .nuxt/dist contain one debug ID Nitro builds server-side The whole build output...
Open Graph Description: Description Problem Nuxt runs through the build twice (client and server). Nuxt builds client-side Nuxt builds server-side Now all client and server files in .nuxt/dist contain one debug ID Nitro b...
X Description: Description Problem Nuxt runs through the build twice (client and server). Nuxt builds client-side Nuxt builds server-side Now all client and server files in .nuxt/dist contain one debug ID Nitro b...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18974
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Nuxt] Inject debug IDs and release only at build-end","articleBody":"### Description\n\n## Problem\nNuxt runs through the build twice (client and server). \n1. Nuxt builds client-side\n2. Nuxt builds server-side\n3. Now all client and server files in `.nuxt/dist` contain one debug ID\n4. Nitro builds server-side\n5. The whole build output is moved to `.output` and the server-side files which were already included in `.nuxt/dist/server` (the Nuxt build) are touched by the rollup plugin a second time.\n\n\nThis setup causes the Nuxt SDK to include the Vite **and** the Rollup plugin, so all source map files are uploaded. However, this has some drawbacks:\n- build-times are longer (as there are more uploads during the build)\n- Source-mapping might cause problems because some files are touched twice (by Nuxt and Nitro) ([related issue](https://github.com/getsentry/sentry-javascript/issues/18519) - however, this was fixed with a workaround that checks if a file already contains a debug ID)\n- release injection happens twice in some files\n\n## Solution\nBy using the [Bundler Plugin Manager](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/packages/bundler-plugin-core/src/build-plugin-manager.ts), we can do everything (debug \nID and release injection) at the end of the build.","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2026-01-26T12:28:55Z","url":"https://github.com/getsentry/sentry-javascript/issues/18974"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3b40673-3a28-a1d3-b326-fe7f61b59366 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C068:362421:3B5CA5:51DB35:6B046DE1 |
| html-safe-nonce | 71a8908a89b94309b356bb4432c2296cb4597708d477ca10318fe76bc444d501 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDY4OjM2MjQyMTozQjVDQTU6NTFEQjM1OjZCMDQ2REUxIiwidmlzaXRvcl9pZCI6IjgxNTYwMTgzMDQxOTMxNjI3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dc74184dacf67fb5935e440685d3f28fc73ee94c75d459f5fd255dc3c14aab33 |
| hovercard-subject-tag | issue:3855771277 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/18974/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fca2bd238b52c853596c690605b2c03e705815cb26470971e7987788ee47ebf/getsentry/sentry-javascript/issues/18974 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fca2bd238b52c853596c690605b2c03e705815cb26470971e7987788ee47ebf/getsentry/sentry-javascript/issues/18974 |
| og:image:alt | Description Problem Nuxt runs through the build twice (client and server). Nuxt builds client-side Nuxt builds server-side Now all client and server files in .nuxt/dist contain one debug ID Nitro b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s1gr1d |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width