SvelteKit Environment Variables with the SvelteKit $env Module
With SvelteKit in the past if you wanted to use a .env
file secret that you didn’t want exposed on the client there was some additional config you needed to do.
Vite exposes all variables contained in the .env
file prefixed with VITE_
to the client. ...