Post
The docs suggest to make them optional during building, but the downside is that you then need to handle the optional type all over the code since the type of the variable will be `undefined | string`. Although this is technically correct it's not great DX and unnecessary during runtime. 2/
0 reposts0 likes
have you tested to see what happens when you access a runtime-only variable at build time? it won't throw an error, the value will just _be_ an error. FWIW we're looking into doing something like this github.com/sveltejs/kit...
github.combreaking: replace `EnvVarConfig.static` with `EnvVarConfig.availability` by dummdidumm · Pull Request #16267 · sveltejs/kitThe static: boolean property on environment variable configs has been replaced by availability, which has four possible values:
'dynamic' (default, equivalent to the old static: false) — t...