Title: NextJS 11 withSentryConfig returns a function when it should return an object · Issue #3722 · getsentry/sentry-javascript · GitHub
Open Graph Title: NextJS 11 withSentryConfig returns a function when it should return an object · Issue #3722 · getsentry/sentry-javascript
X Title: NextJS 11 withSentryConfig returns a function when it should return an object · Issue #3722 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3722
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NextJS 11 withSentryConfig returns a function when it should return an object","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [X] Review the documentation: https://docs.sentry.io/\r\n- [X] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [X] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [x] other: `@sentry/nextjs`\r\n\r\n### Version:\r\n\r\n```\r\n6.7.2\r\n```\r\n\r\n## Description\r\n\r\nUtilizing https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ `withSentryConfig` is returned directly into module.exports. However it's a function at this level and needs to be executed when sent to module.exports to actually send the settings to NextJS. Otherwise it's just a function that nextjs never exports. This actually ends up breaking any settings anyone has added in Next.config.js because once withSentryConfig does this then nextjs sees theres no webpack key on the object sent to module.exports\r\n","author":{"url":"https://github.com/tm1000","@type":"Person","name":"tm1000"},"datePublished":"2021-06-21T20:53:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/3722"}
| 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:8e3c1091-8294-db1a-555a-64d2bac30802 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6F6:25A876:706CC3:9E3979:6B044D6F |
| html-safe-nonce | fde573dea19ab36db6cb39e7d54eaeaac097bf2498e44306e568e9871b6bbebc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkY2OjI1QTg3Njo3MDZDQzM6OUUzOTc5OjZCMDQ0RDZGIiwidmlzaXRvcl9pZCI6Ijc2MTY5MDkxNTU4ODYxODk5MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c272c747f3cbc4664e96bae3f92924a2649baed896564221f61c351e59b08410 |
| hovercard-subject-tag | issue:926587100 |
| 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/3722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8e1516934227c0c5c87a59da3ebdeb43369612469db3ea3c59d5efef4a05453/getsentry/sentry-javascript/issues/3722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8e1516934227c0c5c87a59da3ebdeb43369612469db3ea3c59d5efef4a05453/getsentry/sentry-javascript/issues/3722 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tm1000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| 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 | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| 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