Commit 8124aec
committed
Add build-time config stub for SvelteKit build
During `vite build`, env vars are unavailable so config validation
fails. Use SvelteKit's `building` flag to return safe defaults at
build time, real config at runtime.1 parent b5d25cd commit 8124aec
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
184 | 201 | | |
185 | | - | |
| 202 | + | |
186 | 203 | | |
187 | 204 | | |
188 | 205 | | |
0 commit comments