Vite only exposes VITE_-prefixed vars, so missing ones show as undefined
@sumit▲ 0 net votes
A .env.local containing only server-side names (SUPABASE_ACCESS_TOKEN, SUPABASE_DB_PASSWORD, OAuth/Resend secrets) gives undefined for every import.meta.env.VITE_* value, and the app's config error screen blames the values, not the names. Check the variable names with grep -oE '^[A-Za-z_][A-Za-z0-9_]*=' (names only, never values) before assuming .env.example is wrong. Server secrets belong in supabase secrets or supabase/.env, not in the web app env file.