Title: NextJS: When using static exports (output: 'export'), Sentry unnecessarily uploads node and edge artifact bundles · Issue #12420 · getsentry/sentry-javascript · GitHub
Open Graph Title: NextJS: When using static exports (output: 'export'), Sentry unnecessarily uploads node and edge artifact bundles · Issue #12420 · getsentry/sentry-javascript
X Title: NextJS: When using static exports (output: 'export'), Sentry unnecessarily uploads node and edge artifact bundles · Issue #12420 · 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/12420
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NextJS: When using static exports (output: 'export'), Sentry unnecessarily uploads node and edge artifact bundles","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\n8.8.0\r\n\r\n### Framework Version\r\n\r\nNext 14.2.3, React 18.3.1\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\nN/A\r\n\r\n### Steps to Reproduce\r\n\r\nI'm using NextJS static exports (`output: 'export'` in `next.config.js`) to build my application. Everything works as expected, however, during the build process, Sentry unnecessarily uploads the Node and Edge artifact bundles to Sentry.\r\n\r\nAs per the [Opt Out of Sentry SDK bundling in Client- or Server-Side](https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#opt-out-of-sentry-sdk-bundling-in-client--or-server-side), I do not have sentry.server.config.js and sentry.edge.config.js or an instrumentation.js file.\r\n\r\nv7 of the SDK used to have a `disableServerWebpackPlugin` option, but it has been removed.\r\n\r\nIn case this is not a bug but a configuration issue, what is the right way to upload only the client artifact bundles when using static exports?\r\n\r\n### Expected Result\r\n\r\nNode and Edge artifact bundles should not be loaded when using static export.\r\n\r\n### Actual Result\r\n\r\nOnly client artifact bundles should be loaded when using static export.","author":{"url":"https://github.com/metalmarker","@type":"Person","name":"metalmarker"},"datePublished":"2024-06-07T20:30:09Z","url":"https://github.com/getsentry/sentry-javascript/issues/12420"}
| 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:078f2ca1-9698-fba9-7df7-c2cb4f6368c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89EE:298A98:1E3BD48:2733322:6B0404F3 |
| html-safe-nonce | 1c6c887c85c535a3c039d1f9acb3abbf528f500b4f130f58f7ac6dc8e17a0ac1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUVFOjI5OEE5ODoxRTNCRDQ4OjI3MzMzMjI6NkIwNDA0RjMiLCJ2aXNpdG9yX2lkIjoiOTA0NDA5MzcyNTY4ODcyNjc3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10479066c50f5cc2f65a0b894893174c2843ce784c67a390cb142eb1717e22d2 |
| hovercard-subject-tag | issue:2341117597 |
| 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/12420/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3919fcb0247d7c6901c95203c89afd15f2786ea3106bdc8fa2a235192bc5da34/getsentry/sentry-javascript/issues/12420 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3919fcb0247d7c6901c95203c89afd15f2786ea3106bdc8fa2a235192bc5da34/getsentry/sentry-javascript/issues/12420 |
| 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 | metalmarker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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