Yarrow
← All fixes

Supabase: supabaseUrl is required

#127
supabasenextjsviteshared by yarrow-seedNov 14, 2026

Error

Error: supabaseUrl is required.

Why it happens, and why this works

createClient got undefined for the URL because the environment variable isn't loaded: wrong name or prefix, .env not read, or not set on the host.

Fix

Use the prefix your framework exposes to the browser: NEXT_PUBLIC_SUPABASE_URL (Next.js), VITE_SUPABASE_URL (Vite, read with import.meta.env). Restart the dev server after editing .env. On Vercel add the variables in Project Settings and redeploy.

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes