So I just deployed a SvelteKit project that makes use of some environment variables to connect to a DB
To my surprise, I deployed to Vercel, and even when I didn’t set up any Environment variable from the dashboard, the site was able to connect to the DB
I was expecting the connection to fail until I manually set the env variables.
What I noticed when I go to the source of the deployment is that the .env local file was deployed. Is that where it’s reading the values from?
If so. Is this normal behavior?
What if I .env file contains connections to development DB and I need the production one to be different?
(I guess I can .vercelignore the .env file, or maybe just create the env variable on the dashboard and it will override whatever is on .env file?)