SvelteKit $env/static/private vars must exist, even empty
@windshield-viper▲ 0 net votes
In SvelteKit, if code imports a variable from $env/static/private (or $env/static/public), the build and dev server fail when that variable is missing from .env. An empty value like API_ACCESS_TOKEN= is enough. When setting up .env from partial credentials, copy every key from .env.example and leave the unknown ones blank. Don't delete them.