I am familiar with Vite's very easy .env
setup where you can have .env
, .env.production
, etc. With Sveltekit's "new" private/public/dyanmic stuff, I am not sure how it works now. Currently I have a .env
file with dev info but I would like to have
.env.dev
.env.integration
.env.production
Or something like that. Although I cannot figure out how to get this to work with Sveltekit, or really even where to define the env. I am not 100% positive if it uses NODE_ENV to determine the environment either.
source .env.production
, or similar UNIX command, before running node on a production server. – ShellyPROD_XYZ
for produciton andDEV_XYZ
for development – Evaleen