Title: Cannot upload Cloudflare worker.js sourcemaps when using OpenNext · Issue #19213 · getsentry/sentry-javascript · GitHub
Open Graph Title: Cannot upload Cloudflare worker.js sourcemaps when using OpenNext · Issue #19213 · getsentry/sentry-javascript
X Title: Cannot upload Cloudflare worker.js sourcemaps when using OpenNext · Issue #19213 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19213
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot upload Cloudflare worker.js sourcemaps when using OpenNext","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n10.34.0\n\n### Framework Version\n\nNext 15.5.9 (OpenNext + Cloudflare Workers)\n\n### Link to Sentry event\n\nhttps://dogs-unleashed-ab.sentry.io/issues/93718351/events/f3276ea43fa8497c8d2ff2f00fa645eb/\n\n### Reproduction Example/SDK Setup\n\nApp is a Next 15.5.9 Pages app deployed via OpenNext to Cloudflare Workers.\n\nSetup summary:\n\n- Build: `opennextjs-cloudflare build`\n- Wrangler build output: `wrangler deploy --outdir .wrangler-sourcemaps --upload-source-maps ...`\n- Debug IDs injected: `sentry-cli sourcemaps inject .wrangler-sourcemaps`\n- Upload: `sentry-cli sourcemaps upload --debug-id-reference --rewrite .wrangler-sourcemaps`\n- Worker deployed using the same bundle (no re-bundling): \n `wrangler deploy .wrangler-sourcemaps/worker.js --no-bundle ...`\n\nArtifacts are uploaded and visible in Sentry, including `~/worker.js` and `~/worker.js.map` with Debug IDs.\n\n### Steps to Reproduce\n\n1. Deploy Next 15.5.9 using OpenNext on Cloudflare Workers.\n2. Generate + upload sourcemaps for `worker.js` with Debug IDs (sentry-cli inject + upload).\n3. Trigger an error in `getServerSideProps`.\n\n### Expected Result\n\nReadable stack traces mapped to original source (e.g., `pages/sentry-server-test.tsx`).\n\n### Actual Result\n\nSentry still shows `worker.js` frames and says:\n\n- “Stack frame doesn’t have Debug IDs”\n- “Uploaded files not deployed”\n\nExample (screenshot):\n\n\u003cimg width=\"1070\" height=\"594\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/55b157b6-9a00-4457-ad8b-bb26671f06c0\" />\n\n### Additional Context\n\nI can confirm:\n\n- Debug IDs exist in `worker.js` and `worker.js.map`.\n- The deployed worker file is the same artifact used for upload.\n- Sentry release is set and consistent.\n\nSeems like the runtime frames in the event don’t include Debug IDs, even though the bundle contains them. Is @sentry/nextjs (or OpenNext) stripping debug ID metadata in the runtime stack frames for Cloudflare Workers?\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/Livijn","@type":"Person","name":"Livijn"},"datePublished":"2026-02-06T15:13:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/19213"}
| 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:f17cf37c-24fe-769b-10f1-2fee3f192849 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FB2:C74C:170778:1F2CE4:6B042FC1 |
| html-safe-nonce | 584be8f10ce2306b360e2688a20b086874af9710d184f4889f630d49940d8296 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkIyOkM3NEM6MTcwNzc4OjFGMkNFNDo2QjA0MkZDMSIsInZpc2l0b3JfaWQiOiIxOTAxMDM2MDk4NDc4NjgyMDQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ef2f3ff8893f37e3bc9bcd70837fe8736e47e1f30df4a6d7591cb7a30937892e |
| hovercard-subject-tag | issue:3907216334 |
| 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/19213/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59e26cbec9f6058f02029e46fc6dfaa49b920a0b8d3fb957928f91b9647956e9/getsentry/sentry-javascript/issues/19213 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59e26cbec9f6058f02029e46fc6dfaa49b920a0b8d3fb957928f91b9647956e9/getsentry/sentry-javascript/issues/19213 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Livijn |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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