-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(browser): Add environment variable support for Spotlight configuration #18198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BYK
wants to merge
96
commits into
develop
Choose a base branch
from
feat/spotlight-environment-variable-support
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,733
−268
Open
Changes from all commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
6cb5513
feat(browser): Add environment variable support for Spotlight configu…
BYK f16380f
change priority order for SENTRY_SPOTLIGHT
BYK fda3d61
fixup changelog
BYK bcff50d
some more clean up
BYK cd42ebd
address issues raised by agents
BYK 0ac2828
Fix test failure in CI (#18210)
BYK 0915965
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK 6ea8d90
Process and resolve pull request comments (#18235)
BYK 870be3b
Merge branch 'master' into feat/spotlight-environment-variable-support
BYK 1cf7f7f
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK b6fda2b
some tests etc
BYK 469940b
fix tests
BYK be6f1b5
add env2bool export back just in case
BYK c9b13e3
fix lint
BYK d129a79
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK f542f62
fix ts errors
BYK 4c28587
fix prettier
BYK f9b555a
lint fixes
BYK e12b3fc
fix tests
BYK ab56171
fix prettification
BYK 6cbd1fd
type error
BYK 3bc5309
remove module field to fix webpack 4
BYK c78da67
remove unused ts-ignore
BYK fb3f764
fix maybe?
BYK d556863
fixes
BYK 64c4692
works now?
BYK 75f2b49
sigh
BYK 9f1e28f
really?
BYK a23d53a
fix(e2e): explicitly pass spotlight env var to init in production builds
BYK 90eca4e
fix(e2e): use development SDK exports for Spotlight env var tests
BYK f16915a
fix(e2e): use vite dev server for realistic Spotlight testing
BYK c7c9b95
feat(e2e): add Next.js Spotlight dev mode test application
BYK cb298e2
prettification
BYK 5fdcf7d
fix(e2e): configure Next.js to use development export conditions
BYK c12edfc
feat(nextjs): auto-enable development export conditions in dev mode
BYK 2ea8c45
fix(e2e): revert Vite app to use production build with dev SDK exports
BYK 433c0ac
fix(e2e): update errors.test.ts to handle dev-mode filenames
BYK 212a8bb
fix(nextjs): add conditionNames to WebpackConfigObject resolve type
BYK 516ede0
fix(e2e): fix worker filename regex patterns
BYK 5df223a
fix(nextjs): revert automatic development conditions
BYK 102dc61
fix(nextjs): preserve existing conditionNames when adding development
BYK d4662e5
fix(nextjs): handle case where conditionNames doesn't exist
BYK 7cffb67
fix(nextjs): add browser/node condition for client/server bundles
BYK dde88ca
fix(nextjs): use resolve.alias to point @sentry/browser to dev build
BYK 9c6d19a
change approach
BYK de9943d
hmm
BYK f7d1ffd
again?
BYK 3cf3a95
dot dot dot
BYK 42d832c
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK 4c6aaad
fallback
BYK d9d7124
prob not
BYK a313e1c
debugging
BYK 77be213
bump nextjs size
BYK 0d69896
lfg
BYK e32150d
turbopack...
BYK 2346b4c
moare debug
BYK e549260
ok boss
BYK 93eceb5
moar debug
BYK 33df6a0
dddddebuggging
BYK 669c71b
build fix
BYK 8d639f4
...
BYK ca898d9
hmm
BYK 855ff97
?
BYK 5deeb64
yay!
BYK 9ef14ff
simplifications
BYK fcab9df
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK 693c80e
prettier fix
BYK 7c1107f
fix(nextjs): Use valueInjectionLoader for Spotlight config instead of…
BYK 9a9ba91
fix(browser): Remove development-only wrapper from Spotlight auto-ena…
BYK 65860d4
fix(nextjs): Handle Spotlight auto-enablement in Next.js client SDK
BYK 1ab6f28
Merge branch 'develop' into feat/spotlight-environment-variable-support
BYK 7501e60
fix(ci): Add NEXT_PUBLIC_SENTRY_SPOTLIGHT env var for E2E tests
BYK 351046b
fix(build): Revert rollup-utils changes that broke package builds
BYK eca64b5
fix(browser): Remove import.meta.env check to avoid CJS syntax errors
BYK 0ad25a3
fix(nextjs): Honor explicit spotlight option even without env var
BYK b9d3337
fix(browser): Update build-artifacts tests to match actual env.ts imp…
BYK b2716ec
fix(ci): Remove global Spotlight env vars from E2E tests
BYK 94d86a0
refactor(ci): Set NEXT_PUBLIC_SENTRY_SPOTLIGHT via real env var inste…
BYK 43572cf
debug: Add logging to verify Spotlight env var is set in CI
BYK df539cf
debug: Add logging to show globalThis vs process.env in spotlight test
BYK c23f1d7
debug: Capture and print console logs in spotlight test
BYK e5409e6
debug: Log spotlight config detection in withSentryConfig
BYK bf2e634
fix(test-utils): Inherit environment variables in Playwright webServer
BYK b16f01d
fix(nextjs): Check process.env for Spotlight config as fallback
cursoragent 40c4967
fix(nextjs): Inject _sentrySpotlight via globalThis for reliable Spot…
cursoragent 1642e35
debug: Add logging to verify valueInjectionLoader in Spotlight test
cursoragent 67d1d4b
chore: Fix formatting issues
cursoragent ce30f02
fix(nextjs): Update Spotlight test to explicitly pass spotlight option
cursoragent 5bc01a0
fix(e2e): Explicitly disable Spotlight in react-router-7-lazy-routes …
cursoragent 939e0cd
fix(e2e): Fix nextjs-15-spotlight test by using explicit spotlight pa…
cursoragent f24fa13
was it spotlight
BYK c7652fe
Revert "fix(e2e): Fix nextjs-15-spotlight test by using explicit spot…
BYK bb65b10
it wasn't spotlight
BYK d62b54e
fix(e2e): Remove global VITE_SENTRY_SPOTLIGHT from run.ts
BYK 12481ec
fix(test-utils): Use epoch-based timestamps in event proxy server
BYK d873831
fix(test-utils): Use Date.now() only for cross-process timestamps
BYK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ tmp | |
| .tmp_build_stderr | ||
| pnpm-lock.yaml | ||
| .last-run.json | ||
| .next | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
dev-packages/e2e-tests/test-applications/angular-17/src/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title>Angular17</title> | ||
| <base href="/"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>Angular17</title> | ||
| <base href="/" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico" /> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| </html> |
20 changes: 10 additions & 10 deletions
20
dev-packages/e2e-tests/test-applications/angular-18/src/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title>Angular 18</title> | ||
| <base href="/"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>Angular 18</title> | ||
| <base href="/" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico" /> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| </html> |
20 changes: 10 additions & 10 deletions
20
dev-packages/e2e-tests/test-applications/angular-19/src/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title>Angular19</title> | ||
| <base href="/"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>Angular19</title> | ||
| <base href="/" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="icon" type="image/x-icon" href="favicon.ico" /> | ||
| </head> | ||
| <body> | ||
| <app-root></app-root> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
dev-packages/e2e-tests/test-applications/browser-webworker-vite/playwright.config.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/vite-env.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| /// <reference types="vite/client" /> | ||
|
|
||
| declare const process: { env: Record<string, string | undefined> } | undefined; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dev-packages/e2e-tests/test-applications/create-react-app/public/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dev-packages/e2e-tests/test-applications/ember-classic/app/components/link.hbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| <a href={{this.href}} class={{if this.isActive 'active'}} {{on 'click' this.onClick}}> | ||
| {{yield}} | ||
| </a> | ||
| </a> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.