Hi! I'm getting this error when trying to read an Env Variable. My .env is in the root directory, the variable is prefixed by VITE, and I'm trying to import it doing
const apiKey = import.meta.env.VITE_YOUTUBE_API_KEY;
I've scoured the web, but most of the answers were "use VITE prefix" or "use import.meta.env", so no luck there. I also tried using loadEnv like this https://vitejs.dev/config/#using-environment-variables-in-config, but I get "process is not defined" at js const env = loadEnv(mode, process.cwd(), '')
Any help would be appreciated!