Commit 76dd228
authored
fix(web): skip empty APP_URL_OVERRIDE export in dev (#3056)
Regression from d773511. Unconditionally exporting APP_URL_OVERRIDE
made process.env.APP_URL_OVERRIDE an empty string when nothing in the
env files defined it, which defeats the `??` fallback in
apps/web/src/lib/constants.ts and crashes Turbopack with 'Invalid URL'
at `new URL(APP_URL)` in app/layout.tsx.
Only export when non-empty so the variable stays undefined and the
localhost fallback fires.1 parent 9babcb3 commit 76dd228
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
0 commit comments