Title: Client-side sourceMappingURL is being erased despite of settings · Issue #12219 · getsentry/sentry-javascript · GitHub
Open Graph Title: Client-side sourceMappingURL is being erased despite of settings · Issue #12219 · getsentry/sentry-javascript
X Title: Client-side sourceMappingURL is being erased despite of settings · Issue #12219 · 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/12219
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client-side sourceMappingURL is being erased despite of settings","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n8.4.0\n\n### Framework Version\n\nNext 14.1.1\n\n### Link to Sentry event\n\nhttps://sentry.testgrigorev-aks.arkadiumhosted.com/organizations/arkadium-test-sentry/issues/302/?query=is%3Aunresolved&referrer=issue-stream&stream_index=0\n\n### SDK Setup\n\nsentry.client.config.ts\r\n```\r\nimport * as Sentry from '@sentry/nextjs';\r\n\r\nconst isProd = process.env.BUILD_ENV === 'production';\r\nSentry.init({\r\n dsn: process.env.SENTRY_DSN,\r\n environment: process.env.BUILD_ENV,\r\n tracesSampleRate: isProd ? 0.1 : 1,\r\n debug: false,\r\n replaysOnErrorSampleRate: isProd ? 0.1 : 1.0,\r\n replaysSessionSampleRate: isProd ? 0.1 : 1.0,\r\n\r\n integrations: [\r\n Sentry.replayIntegration({\r\n maskAllText: false,\r\n blockAllMedia: false,\r\n }),\r\n Sentry.browserTracingIntegration(),\r\n \r\n ],\r\n});\r\n```\r\n\r\ninstrumentation.ts\r\n```\r\nimport * as Sentry from '@sentry/nextjs';\r\nexport async function register() {\r\n const isProd = process.env.BUILD_ENV === 'production';\r\n Sentry.init({\r\n dsn: process.env.SENTRY_DSN,\r\n environment: process.env.BUILD_ENV,\r\n release: process.env.SENTRY_RELEASE,\r\n tracesSampleRate: isProd ? 0.1 : 1,\r\n debug: false,\r\n });\r\n}\r\n```\r\n\r\nnextjs.config.js\r\n\r\n```\r\nconst { withSentryConfig } = require('@sentry/nextjs');\r\n\r\n/** @type {import('next').NextConfig} */\r\nconst nextConfig = {\r\n env: {\r\n SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,\r\n SENTRY_RELEASE: process.env.SENTRY_RELEASE,\r\n SENTRY_DSN: process.env.SENTRY_DSN,\r\n BUILD_ENV: process.env.BUILD_ENV,\r\n },\r\n output: 'standalone',\r\n reactStrictMode: false,\r\n productionBrowserSourceMaps: true,\r\n experimental: {\r\n instrumentationHook: true,\r\n },\r\n images: {\r\n remotePatterns: [\r\n {\r\n protocol: 'https',\r\n hostname: 'cdn.com',\r\n port: '',\r\n pathname: '/**',\r\n },\r\n ],\r\n },\r\n async rewrites() {\r\n return [\r\n {\r\n source: '/',\r\n destination: '/home',\r\n },\r\n ];\r\n },\r\n};\r\nconst sentryWebpackPluginOptions = {\r\n // Additional config options for the Sentry webpack plugin. Keep in mind that\r\n // the following options are set automatically, and overriding them is not\r\n // recommended:\r\n // release, url, configFile, stripPrefix, urlPrefix, include, ignore\r\n release: process.env.SENTRY_RELEASE,\r\n environment: process.env.BUILD_ENV,\r\n org: process.env.SENTRY_ORG,\r\n project: process.env.SENTRY_PROJECT,\r\n url: process.env.SENTRY_URL,\r\n authToken: process.env.SENTRY_AUTH_TOKEN,\r\n\r\n widenClientFileUpload: true,\r\n\r\n transpileClientSDK: true,\r\n tunnelRoute: '/monitoring',\r\n disableLogger: true,\r\n debug: true,\r\n telemetry: false,\r\n\r\n\r\n automaticVercelMonitors: true,\r\n\r\n};\r\n\r\n// Make sure adding Sentry options is the last code to run before exporting\r\nmodule.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);\r\n```\n\n### Steps to Reproduce\n\n1. yarn build\r\n2. check /.next/server/app/[...slug]/page.js\r\n3. There is //# sourceMappingURL=page.js.map string\r\n4. check /.next/static/chunks/app/[...slug]/page-${hash}.js\r\n5. There is no //# sourceMappingURL=page-${hash}.js.map string\n\n### Expected Result\n\n//# sourceMappingURL=page-${hash}.js.map should be in the static files.\n\n### Actual Result\n\nserver:\r\n\r\n\r\nclient:\r\n\r\n\r\n","author":{"url":"https://github.com/aacheblukov","@type":"Person","name":"aacheblukov"},"datePublished":"2024-05-24T17:46:16Z","url":"https://github.com/getsentry/sentry-javascript/issues/12219"}
| 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:50572d97-b910-d2ed-2ace-bd0fc71c1796 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2B2:7DF65:1A66E9E:229B4C8:6B0407AA |
| html-safe-nonce | 48f7bf71dc47cd2874e8501c3832ec2367f368b4d0df0f81ecd87877e0cb67f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkIyOjdERjY1OjFBNjZFOUU6MjI5QjRDODo2QjA0MDdBQSIsInZpc2l0b3JfaWQiOiIxMDYwMTQ2NzQ2NzcwMDY1MzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2774a28821ffc24ea7c41fc12b99e2a82614769c45dea4800f03e0123b850831 |
| hovercard-subject-tag | issue:2315917895 |
| 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/12219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/daf8ba1b0b0ed60b0e894b2e5ae9737ebd63691cd5296bc55ac6d08bf5754fbb/getsentry/sentry-javascript/issues/12219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/daf8ba1b0b0ed60b0e894b2e5ae9737ebd63691cd5296bc55ac6d08bf5754fbb/getsentry/sentry-javascript/issues/12219 |
| 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 | aacheblukov |
| 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