| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:6e38b677-eaaa-7c51-936e-fba1f9604b3c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 99E8:12379F:220CD9:2DEE9D:6B043980 |
| html-safe-nonce | e25ed5f21151ac75053baecb4bc2d9c7dbc2f68ffd43153471d4debe7e1b208d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUU4OjEyMzc5RjoyMjBDRDk6MkRFRTlEOjZCMDQzOTgwIiwidmlzaXRvcl9pZCI6IjgxMzEzNzcwMDMwNzQxNzMzMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ac8fed06a9516969f7e4eceebc81048d000325a400d02260ae17281f7c88d16 |
| hovercard-subject-tag | pull_request:2999530859 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/18172/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/297b1c1b6b4bc6d5b5e4c58cb3cd9eb6d40a99bc48fba8dcbca135970f9d9e82/getsentry/sentry-javascript/pull/18172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/297b1c1b6b4bc6d5b5e4c58cb3cd9eb6d40a99bc48fba8dcbca135970f9d9e82/getsentry/sentry-javascript/pull/18172 |
| og:image:alt | This PR attempts to fix #18001 by not wrapping the middleware files if Next.js 16 is the current version and is in standalone output mode which is the problematic scenario.
Investigation:
Next.js ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | logaretm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-cache |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/getsentry/sentry-javascript/pull/18172#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F18172 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F18172 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript |
| Reload | https://github.com/getsentry/sentry-javascript/pull/18172 |
| Reload | https://github.com/getsentry/sentry-javascript/pull/18172 |
| Reload | https://github.com/getsentry/sentry-javascript/pull/18172 |
| getsentry | https://github.com/getsentry |
| sentry-javascript | https://github.com/getsentry/sentry-javascript |
| Code | https://github.com/getsentry/sentry-javascript |
| Issues340 (340) | https://github.com/getsentry/sentry-javascript/issues |
| Pull requests55 (55) | https://github.com/getsentry/sentry-javascript/pulls |
| Discussions | https://github.com/getsentry/sentry-javascript/discussions |
| Actions | https://github.com/getsentry/sentry-javascript/actions |
| Security and quality7 (7) | https://github.com/getsentry/sentry-javascript/security |
| Insights | https://github.com/getsentry/sentry-javascript/insights |
| https://github.com/getsentry/sentry-javascript |
| logaretm | https://github.com/logaretm |
| develop | https://github.com/getsentry/sentry-javascript/tree/develop |
| awad/js-1079-sentry-causes-nextjs-16-build-to-fail-when-using-standalone | https://github.com/getsentry/sentry-javascript/tree/awad/js-1079-sentry-causes-nextjs-16-build-to-fail-when-using-standalone |
| Conversation | https://github.com/getsentry/sentry-javascript/pull/18172 |
| Commits2 (2) | https://github.com/getsentry/sentry-javascript/pull/18172/commits |
| Checks | https://github.com/getsentry/sentry-javascript/pull/18172/checks |
| Files changed | https://github.com/getsentry/sentry-javascript/pull/18172/files |
| fix(nextjs): Avoid wrapping middleware files when in standalone mode | https://github.com/getsentry/sentry-javascript/pull/18172#top |
| logaretm | https://github.com/logaretm |
| develop | https://github.com/getsentry/sentry-javascript/tree/develop |
| awad/js-1079-sentry-causes-nextjs-16-build-to-fail-when-using-standalone | https://github.com/getsentry/sentry-javascript/tree/awad/js-1079-sentry-causes-nextjs-16-build-to-fail-when-using-standalone |
|
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| Nov 11, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#issue-3612844965 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| #18001 | https://github.com/getsentry/sentry-javascript/issues/18001 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| https://github.com/apps/linear |
| linear | https://github.com/apps/linear |
| Nov 11, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#issuecomment-3517514080 |
| JS-1079 Sentry causes Next.js 16 build to fail when using standalone output | https://linear.app/getsentry/issue/JS-1079/sentry-causes-nextjs-16-build-to-fail-when-using-standalone-output |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| https://github.com/chargome |
| chargome | https://github.com/chargome |
| Nov 11, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#issuecomment-3517819337 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| Nov 11, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#issuecomment-3517828859 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| get the middleware spans | https://sentry-sdks.sentry.io/explore/traces/trace/76ec24576ed2fe4bfb1d1fc6d8c4ae9a/?fov=0%2C19.427978515625&mode=samples&node=span-60ca25663ddac555&project=4510187201757184&source=traces&statsPeriod=14d&table=trace×tamp=1762879977 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| November 11, 2025 16:54 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20867417611 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Nov 11, 2025
| https://github.com/getsentry/sentry-javascript/pull/18172#pullrequestreview-3449019447 |
|
View reviewed changes
| https://github.com/getsentry/sentry-javascript/pull/18172/files |
| packages/nextjs/src/config/webpack.ts | https://github.com/getsentry/sentry-javascript/pull/18172/files#diff-55396f0a8f12ba2eb7ce27f3cf886f946c29c2aa93b5d2f993dadbd5a9f3cc75 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| force-pushed | https://github.com/getsentry/sentry-javascript/compare/b40496843cd423b2cdcba8024a7749e0b571d7a6..ca164ecda07666a366a98448a26f3ceb44357c36 |
| b404968 | https://github.com/getsentry/sentry-javascript/commit/b40496843cd423b2cdcba8024a7749e0b571d7a6 |
| ca164ec | https://github.com/getsentry/sentry-javascript/commit/ca164ecda07666a366a98448a26f3ceb44357c36 |
|
Compare
| https://github.com/getsentry/sentry-javascript/compare/b40496843cd423b2cdcba8024a7749e0b571d7a6..ca164ecda07666a366a98448a26f3ceb44357c36 |
| November 12, 2025 08:54 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20882822590 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| Lms24 | https://github.com/Lms24 |
| chargome | https://github.com/chargome |
| November 12, 2025 08:54 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20882826885 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| Nov 12, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20882840368 |
|
Sentry causes Next.js 16 build to fail when using standalone output
#18001
| https://github.com/getsentry/sentry-javascript/issues/18001 |
| logaretm | https://github.com/logaretm |
| November 12, 2025 10:56 | https://github.com/getsentry/sentry-javascript/pull/18172#commits-pushed-d6d59ea |
|
| https://github.com/logaretm |
| feat: avoid wrapping middleware files when in standalone mode | https://github.com/getsentry/sentry-javascript/pull/18172/commits/d6d59ea2386f44cad4c7fde2b1cfb02bb5929d6c |
| d6d59ea | https://github.com/getsentry/sentry-javascript/pull/18172/commits/d6d59ea2386f44cad4c7fde2b1cfb02bb5929d6c |
|
| https://github.com/logaretm |
| fix: default to wrap the middleware if version cannot be determined | https://github.com/getsentry/sentry-javascript/pull/18172/commits/bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
| bf7e473 | https://github.com/getsentry/sentry-javascript/pull/18172/commits/bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| force-pushed | https://github.com/getsentry/sentry-javascript/compare/ca164ecda07666a366a98448a26f3ceb44357c36..bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
| ca164ec | https://github.com/getsentry/sentry-javascript/commit/ca164ecda07666a366a98448a26f3ceb44357c36 |
| bf7e473 | https://github.com/getsentry/sentry-javascript/commit/bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
|
Compare
| https://github.com/getsentry/sentry-javascript/compare/ca164ecda07666a366a98448a26f3ceb44357c36..bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
| November 12, 2025 08:56 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20882850923 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| Nov 12, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20882854259 |
| https://github.com/chargome |
| chargome | https://github.com/chargome |
|
Nov 12, 2025
| https://github.com/getsentry/sentry-javascript/pull/18172#pullrequestreview-3453178512 |
|
View reviewed changes
| https://github.com/getsentry/sentry-javascript/pull/18172/files/bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| 5c184f4 | https://github.com/getsentry/sentry-javascript/commit/5c184f4a85113d3b566ac5aa8799112ad03d194a |
| Nov 12, 2025 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20887269212 |
| https://github.com/logaretm |
| logaretm | https://github.com/logaretm |
| November 12, 2025 12:26 | https://github.com/getsentry/sentry-javascript/pull/18172#event-20887269746 |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F18172 |
|
| https://github.com/apps/cursor |
|
cursor[bot]
| https://github.com/apps/cursor |
|
| https://github.com/getsentry/sentry-javascript/pull/18172/files/d27c584c89f1a05eaba6f3227c4601d1db820d26 |
|
| https://github.com/chargome |
|
chargome
| https://github.com/chargome |
|
| https://github.com/getsentry/sentry-javascript/pull/18172/files/bf7e47356515f1df0a676ec3210c5fa3c1f5a31e |
|
| https://github.com/Lms24 |
|
Lms24
| https://github.com/Lms24 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
|
Sentry causes Next.js 16 build to fail when using standalone output
| https://github.com/getsentry/sentry-javascript/issues/18001 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/18172 |
|
| https://github.com/logaretm |
|
| https://github.com/chargome |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |