Title: withSentryConfig breaks Nextjs image optimization with some urls in production starting with @sentry/nextjs 7.22.0 · Issue #6401 · getsentry/sentry-javascript · GitHub
Open Graph Title: withSentryConfig breaks Nextjs image optimization with some urls in production starting with @sentry/nextjs 7.22.0 · Issue #6401 · getsentry/sentry-javascript
X Title: withSentryConfig breaks Nextjs image optimization with some urls in production starting with @sentry/nextjs 7.22.0 · Issue #6401 · 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/6401
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"withSentryConfig breaks Nextjs image optimization with some urls in production starting with @sentry/nextjs 7.22.0","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\nSelf-hosted/on-premise\r\n\r\n### Which package are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n7.22.0\r\n\r\n### Framework Version\r\n\r\nReact 18.2.0\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nUpgrading to @sentry/nextjs 7.22.0 (and 7.23.0) breaks the Nextjs Image component optimization with some urls in production, with the server returning \"\"url\" parameter is not allowed\", even though the domain is specified in next.config.js.\r\n\r\nIt appears that withSentryConfig may be overwriting/deleting the image portion of next.config.js as if no image settings have been specified in the file. Removing withSentryConfig restores proper Image component functionality.\r\n\r\nTested on @sentry/nextjs 7.23.0 and 7.22.0, resolved by downgrading to 7.21.1.\r\n\r\n### Expected Result\r\n\r\nFor image settings in next.config.js to not be touched by withSentryConfig.\r\n\r\n### Actual Result\r\n\r\n\r\n","author":{"url":"https://github.com/goguda","@type":"Person","name":"goguda"},"datePublished":"2022-12-02T18:04:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/6401"}
| 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:a66341ef-70c3-9573-52ce-e9410044a27d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED2C:14AF70:27B8DB:36866E:6B0468FF |
| html-safe-nonce | e318e7edba536d7f587c18e282da170a2ec06f9b9cd429dda089a1c2fc6c95fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDJDOjE0QUY3MDoyN0I4REI6MzY4NjZFOjZCMDQ2OEZGIiwidmlzaXRvcl9pZCI6Ijg5NDg1ODY2NDUzMDE3ODI3ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5378691a4ed9cd035f19183b3ca81a984fd7f96f9d19eea85bde370b25d11dc6 |
| hovercard-subject-tag | issue:1473246031 |
| 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/6401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80e4eb64c03bee9c2e029c28b83c892284b203b7f321dbf42ce5e036359b2fd0/getsentry/sentry-javascript/issues/6401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80e4eb64c03bee9c2e029c28b83c892284b203b7f321dbf42ce5e036359b2fd0/getsentry/sentry-javascript/issues/6401 |
| 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 | goguda |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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