Title: `@sentry/nextjs` + `runtime = "edge"` causes `.next/app-build-manifest.json` not to be populated and builds to break · Issue #8062 · getsentry/sentry-javascript · GitHub
Open Graph Title: `@sentry/nextjs` + `runtime = "edge"` causes `.next/app-build-manifest.json` not to be populated and builds to break · Issue #8062 · getsentry/sentry-javascript
X Title: `@sentry/nextjs` + `runtime = "edge"` causes `.next/app-build-manifest.json` not to be populated and builds to break · Issue #8062 · 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/8062
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@sentry/nextjs` + `runtime = \"edge\"` causes `.next/app-build-manifest.json` not to be populated and builds to break","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n7.51.0\r\n\r\n### Framework Version\r\n\r\n13.4.1\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```\r\nimport * as Sentry from \"@sentry/nextjs\";\r\n\r\nSentry.init({\r\n dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,\r\n tracesSampleRate: 0.2,\r\n debug: false,\r\n replaysOnErrorSampleRate: 1,\r\n replaysSessionSampleRate: 0.1,\r\n integrations: [\r\n new Sentry.BrowserTracing(),\r\n new Sentry.Replay({\r\n maskAllText: true,\r\n blockAllMedia: true,\r\n }),\r\n ],\r\n});\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Setup a default template next project using the automatic setup **and the app directory** https://nextjs.org/docs/getting-started/installation\r\n2. Used the wizard and set up \"@sentry/nextjs\" with the defaults for the `next.config`, `client.config`, `edge.config`, `server.config`\r\n\r\neverything looks good at this point, `next start` works etc...\r\n\r\n3. add `export const runtime = \"edge\";` to the root layout\r\n\r\n`next start` breaks because `.next/app-build-manifest.json` is now empty.\r\n\r\nRemoving `withSentryConfig` and returning the next config to the original default config or removing `export const runtime = \"edge\";` gets the build working again and the manifest correctly populated.\r\n\r\n### Expected Result\r\n\r\nNothing should change by adding `export const runtime = \"edge\";`\r\n\r\n### Actual Result\r\n\r\n```\r\n// .next/app-build-manifest.json\r\n\r\n{\r\n \"pages\": {}\r\n}\r\n```","author":{"url":"https://github.com/nrgnrg","@type":"Person","name":"nrgnrg"},"datePublished":"2023-05-08T10:07:25Z","url":"https://github.com/getsentry/sentry-javascript/issues/8062"}
| 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:62df273d-1ff2-a19c-371c-cc42b23d9f1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB7C:1FD1:15A9DC5:1D4D84D:6B044181 |
| html-safe-nonce | a4daf6649f44f8efa9cda9daf65989cf815f621e3f8b63832d1279c2c7d36480 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjdDOjFGRDE6MTVBOURDNToxRDREODREOjZCMDQ0MTgxIiwidmlzaXRvcl9pZCI6IjQ1ODY2MDExNjA2NTEzMjU4MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6609252c49a12df25aa7f99ac82317adb33338358710074983f88231c6c8c3e0 |
| hovercard-subject-tag | issue:1699958521 |
| 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/8062/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab63e7201a0b3007e5a93fbf3a24d808fc56958dfe29eec3484480c7c1d30cf7/getsentry/sentry-javascript/issues/8062 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab63e7201a0b3007e5a93fbf3a24d808fc56958dfe29eec3484480c7c1d30cf7/getsentry/sentry-javascript/issues/8062 |
| 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 | nrgnrg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | canary-2 |
| 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