v0 apps, public env vars, and Supabase auth in v0
highUpdated Oct 14, 2026
Keep the publishable URL and key in NEXT PUBLIC variables. Move the secret key to a server module that client components do not import.
Fix for v0
Keep the publishable URL and key in NEXT_PUBLIC_ variables. Move the secret key to a server module that client components do not import. Redeploy after you change Vercel environment variables. Vercel says existing deployments keep their previous values.
The five-minute check, the other platforms, and the agent prompt are on the full guide. More v0 fixes are on the v0 page.