<aside> ⚠️ Now included in svelte kit
</aside>
Variables must be prefixed with VITE_ to be used on the frontend
VITE_MESSAGE="World"
Access this variable in a .js
, .ts
or .svelte
file:
const message = import.meta.env.VITE_MESSAGE.toString()