#15 most commonenv/configLovableBolt.newCursorReplitv0Windsurf

Error: supabaseUrl is required (or supabaseKey is required)

Uncaught Error: supabaseUrl is required. / supabaseKey is required.

Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.

Paste your error →

What it means

Your app tried to connect to your Supabase database but the address or key was empty. The settings exist in one place (like your builder) but not where the app is actually running.

How to fix it: paste this prompt into your AI builder

Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
My app crashes with "supabaseUrl is required". Find where the Supabase client is created and check which env variable names it reads. Make sure the names match the framework prefix (VITE_SUPABASE_URL / VITE_SUPABASE_ANON_KEY or NEXT_PUBLIC_...), list exactly which variables I need to set in my host, and add a clear startup error message if they're missing. Only use the public anon/publishable key in the browser, never the service_role key. Don't change other code.

If the AI can't fix it: manual steps

  1. Supabase dashboard, Project Settings, API: copy the Project URL and anon/publishable key.
  2. Add them in your host's environment variables for Production and redeploy.

Where this happens

Seen in these AI app builders and editors:

LovableBolt.newCursorReplitv0Windsurf

Sources

Related env/config errors

Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.

Fix my error →