Skip to content
Discussion options

You must be logged in to vote

SvelteKit uses Vite's loadEnv() to load the files. Per the function here, it will read the following:

/** default file */ `.env`,
/** local file */ `.env.local`,
/** mode file */ `.env.${mode}`,
/** mode local file */ `.env.${mode}.local`

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@j4w8n
Comment options

Answer selected by vekunz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants