supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Should we match the default variables to what works with Supabase and Vercel?

Open hdwebpros opened this issue 10 months ago • 1 comments

My headache when using Supabase branching and Vercel with this module

This module uses SUPABASE_KEY and SUPABASE_SERVICE_KEY. The issue is that when you enable the Vercel integration on Supabase, Supabase populates SUPABASE_ANON_KEY and SUPABASE_SERVICE_ROLE_KEY. I was tripped up on this for a bit.

How to tackle this

I considered changing my .env vars to match what Supabase was outputting. It would be even simpler if the module suggested to use the naming structure that Supabase apparently uses and suggests.

hdwebpros avatar Mar 18 '25 20:03 hdwebpros

I do agree that this can be a little annoying. I just got caught up on this because I pushed my SUPABASE_KEY_DEV to my coolify and it was not happy.

It would be nice if it had the env it is looking for inline

# instead of 
[warn] [@nuxt/supabase] Missing supabase url, set it either in `nuxt.config.js` or via env variable

# have it inline
[warn] [@nuxt/supabase] Missing supabase anon key, set it either in `nuxt.config.js` or via env variable (SUPABASE_KEY)

Matthewenderle avatar Nov 22 '25 01:11 Matthewenderle