Title: feat(browser): Add environment variable support for Spotlight configuration · Issue #18404 · getsentry/sentry-javascript · GitHub
Open Graph Title: feat(browser): Add environment variable support for Spotlight configuration · Issue #18404 · getsentry/sentry-javascript
X Title: feat(browser): Add environment variable support for Spotlight configuration · Issue #18404 · getsentry/sentry-javascript
Description: NoteThe pull request "feat(browser): Add environment variable support for Spotlight configuration" was created by @BYK but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear. ...
Open Graph Description: NoteThe pull request "feat(browser): Add environment variable support for Spotlight configuration" was created by @BYK but did not reference an issue. Therefore this issue was created for better vi...
X Description: NoteThe pull request "feat(browser): Add environment variable support for Spotlight configuration" was created by @BYK but did not reference an issue. Therefore this issue was created for...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18404
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(browser): Add environment variable support for Spotlight configuration","articleBody":"> \\[!NOTE\\]\u003cbr>The pull request \"[feat(browser): Add environment variable support for Spotlight configuration](\u003chttps://github.com/getsentry/sentry-javascript/pull/18198>)\" was created by @BYK but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.\n\nImplements full Spotlight spec with support for multiple framework-specific\u003cbr>environment variable prefixes. Adds defensive environment variable access\u003cbr>for both process.env and import.meta.env to support various bundlers.\n\nSupported environment variables (in priority order):\n\n* `PUBLIC_SENTRY_SPOTLIGHT` (SvelteKit, Astro, Qwik)\n* `NEXT_PUBLIC_SENTRY_SPOTLIGHT` (Next.js)\n* `VITE_SENTRY_SPOTLIGHT `(Vite)\n* `NUXT_PUBLIC_SENTRY_SPOTLIGHT `(Nuxt)\n* `REACT_APP_SENTRY_SPOTLIGHT `(Create React App)\n* `VUE_APP_SENTRY_SPOTLIGHT `(Vue CLI)\n* `GATSBY_SENTRY_SPOTLIGHT `(Gatsby)\n* `SENTRY_SPOTLIGHT` (base/official)\n\n`SENTRY_SPOTLIGHT` is last as in environments like Docker Compose, we actually make the front-end env variable different than the base `SENTRY_SPOTLIGHT` one -- the backends need to reach `docker.host.internal` whereas front-ends always need `localhost` as we assume the browser runs on the same host with Spotlight.\n\nRefactors envToBool utility from node-core to core package for shared usage.\u003cbr>Adds resolveSpotlightOptions utility to ensure consistent precedence rules\u003cbr>across Browser and Node SDKs.\n\nIncludes comprehensive test coverage for all new utilities and integration\u003cbr>tests for environment variable precedence behavior.","author":{"url":"https://github.com/apps/github-actions","@type":"Person","name":"github-actions"},"datePublished":"2025-12-04T12:27:39Z","url":"https://github.com/getsentry/sentry-javascript/issues/18404"}
| 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:c9063af1-c392-7afe-3233-aaf131e7fd84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8016:EFB54:96143:C7EDB:6B04AF76 |
| html-safe-nonce | 74250c0c5564ff26f28d0ead3ef8ca4cd4350267f0ef44413458fe5c4c1dea59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDE2OkVGQjU0Ojk2MTQzOkM3RURCOjZCMDRBRjc2IiwidmlzaXRvcl9pZCI6IjY1MjE1MDI2NTM1NTY3NjQ1MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dede1a7f96612bd45f0ba4e30a9504aeb17adfb50cd0ab116c31fb8b7a2877f4 |
| hovercard-subject-tag | issue:3694420002 |
| 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/18404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7e705bbe05244e9ef5ea6fd81b09b06a41bc1558dee1b07a05b98aedac28149/getsentry/sentry-javascript/issues/18404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7e705bbe05244e9ef5ea6fd81b09b06a41bc1558dee1b07a05b98aedac28149/getsentry/sentry-javascript/issues/18404 |
| og:image:alt | NoteThe pull request "feat(browser): Add environment variable support for Spotlight configuration" was created by @BYK but did not reference an issue. Therefore this issue was created for better vi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | github-actions[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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