Title: Option to disable source-map upload on @sentry/next · Issue #3674 · getsentry/sentry-javascript · GitHub
Open Graph Title: Option to disable source-map upload on @sentry/next · Issue #3674 · getsentry/sentry-javascript
X Title: Option to disable source-map upload on @sentry/next · Issue #3674 · getsentry/sentry-javascript
Description: Please add an option to disable source-maps upload to @sentry/nextjs package. Because generating the sourcemaps and uploading them to Sentry takes quite some time, I only want to use sourcemaps when deploying to production. So for live p...
Open Graph Description: Please add an option to disable source-maps upload to @sentry/nextjs package. Because generating the sourcemaps and uploading them to Sentry takes quite some time, I only want to use sourcemaps whe...
X Description: Please add an option to disable source-maps upload to @sentry/nextjs package. Because generating the sourcemaps and uploading them to Sentry takes quite some time, I only want to use sourcemaps whe...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3674
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Option to disable source-map upload on @sentry/next","articleBody":"Please add an option to disable source-maps upload to @sentry/nextjs package. \r\nBecause generating the sourcemaps and uploading them to Sentry takes quite some time, I only want to use sourcemaps when deploying to production. So for live preview deploys I would like to use the @sentry/nextjs package without sourcemap support.\r\n\r\nAs a quick fix I managed to get it working with this script in next.config.js\r\n```\r\nconst removeSentryPluginOnDev = (config) => {\r\n if (process.env.NEXT_PUBLIC_APP_ENV === 'production') {\r\n return config\r\n }\r\n\r\n const newWebpackExport = (webpackConfig, options) => {\r\n const newConfig = config.webpack(webpackConfig, options)\r\n const sentryPlugin = newConfig.plugins.pop()\r\n if (sentryPlugin.options.configFile !== 'sentry.properties') {\r\n throw Error('Seems like the SentryPlugin was not removed.')\r\n }\r\n return newConfig\r\n }\r\n\r\n return { ...config, productionBrowserSourceMaps: false, webpack: newWebpackExport }\r\n }\r\n```","author":{"url":"https://github.com/Utwo","@type":"Person","name":"Utwo"},"datePublished":"2021-06-14T15:42:36Z","url":"https://github.com/getsentry/sentry-javascript/issues/3674"}
| 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:4def2d14-43a0-f38e-64c3-4c4402c9cf2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2CC:DB710:5EAA0:80C34:6B0451CE |
| html-safe-nonce | fed78562c4d8d66269938dbf948de71a84ea18a3bb365b667e874f8bbac01670 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkNDOkRCNzEwOjVFQUEwOjgwQzM0OjZCMDQ1MUNFIiwidmlzaXRvcl9pZCI6IjM2MDUwNzU0ODQyNDcwODU1MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e203df5d24a939cf847cfecc1a57b5a31ebf1823ec08d60979d3f643c80a6f3 |
| hovercard-subject-tag | issue:920541924 |
| 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/3674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b276f5f5c4b77055687d65fccb0a71cc76a53cb7e221cffb0585c0b8618ee931/getsentry/sentry-javascript/issues/3674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b276f5f5c4b77055687d65fccb0a71cc76a53cb7e221cffb0585c0b8618ee931/getsentry/sentry-javascript/issues/3674 |
| og:image:alt | Please add an option to disable source-maps upload to @sentry/nextjs package. Because generating the sourcemaps and uploading them to Sentry takes quite some time, I only want to use sourcemaps whe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Utwo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | canary-1 |
| 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