Svelte · Senior · Question 46 of 75

Where should private environment variables be read in SvelteKit 3?

Explanation

Importing private env into client code fails the build, the same protection as for .server modules.

Further reading

Problem with a question

Svelte · Senior · question 46

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz