The app works in the builder or on your laptop, then shows a blank page in production with this error in the console. The Supabase client is being created with an empty URL, which means the environment variable did not reach the build.
Two things cause that. Vite only exposes variables that start with VITE_ to browser code. And Vercel only applies a variable to deployments made after you added it.
grep -rn "import.meta.env" srcvercel env add VITE_SUPABASE_URL production
vercel env add VITE_SUPABASE_ANON_KEY productionvercel --prodOnly put values in VITE_ variables that are safe to show to every visitor, such as the project URL and the public key. Vite warns that VITE_ variables must not hold secrets. A service role key or a Stripe secret key never goes there.
Your local .env file is not part of the Vercel build. Add the variables in Vercel with the VITE_ prefix, then redeploy.
Yes. Vercel says the change applies only to new deployments.
The free health check asks ten questions about your app and shows the three fixes to do first. It runs in your browser.
If you would rather have someone read the code, the fixed-price audit is $497 one-time. It covers security and scaling, with a written report ranked by severity.