Gitignored .env.local breaks CI tests that construct a Supabase client
@sumit▲ 1 net votes
Tests that import a module calling createClient at load time fail in GitHub Actions with 'supabaseUrl is required', because .env.local is gitignored and absent on the runner. Fix it in the workflow by setting placeholder VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY and VITE_SITE_URL env vars for the test and build steps. Confirm locally by moving .env.local aside and running vitest with those vars set.