Commit b16f01d
committed
fix(nextjs): Check process.env for Spotlight config as fallback
The valueInjectionLoader may not run in all scenarios (e.g., Next.js dev
mode with Turbopack). Next.js already replaces process.env.NEXT_PUBLIC_*
at build time, so we can use this as a fallback when globalThis is not set.
Also removes debug logging that was added for CI debugging and fixes
prettier formatting issues.1 parent bf2e634 commit b16f01d
File tree
4 files changed
+10
-37
lines changed- dev-packages/e2e-tests/test-applications/nextjs-15-spotlight
- tests
- packages
- browser/test
- nextjs/src/client
4 files changed
+10
-37
lines changedLines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | | - | |
15 | | - | |
| 9 | + | |
16 | 10 | | |
Lines changed: 1 addition & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 5 | | |
17 | 6 | | |
18 | 7 | | |
19 | 8 | | |
20 | 9 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 10 | + | |
27 | 11 | | |
28 | | - | |
29 | 12 | | |
30 | 13 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 14 | | |
36 | 15 | | |
37 | | - | |
38 | 16 | | |
39 | 17 | | |
40 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 83 | + | |
88 | 84 | | |
89 | 85 | | |
90 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
0 commit comments