Vite + Vue and DotEnv


How to use dotenv while using F7 v6 and Vite?
I was using F7 v5 and webpack before. And It works fine.
But in Vite, I don’t know how to config it.

Please Help.
Thank you.

Check Vite docs about it Env Variables and Modes | Vite

Thank you. :+1: :+1: :+1:
We can customize the prefix using Configuring Vite | Vite.

use import.meta.env and the env var name should starts with VITE_

Example;: import.meta.env.VITE_API_HOSTNAME