nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

Name the Supabase ENVs as Supabase itself does: SUPABASE_ANON_KEY and SUPABASE_SERVICE_ROLE_KEY #302

Open MichaelSchmidle opened 1 year ago

MichaelSchmidle commented 1 year ago

Is your feature request related to a problem? Please describe.

This is a request for a small "convenience" feature. I use Vercel to deploy my Nuxt 3 app with Supabase backend. Vercel and Supabase offer an integration which automatically populates Supabase environment variables in Vercel. However, the naming of these ENV do not match what's required with the Nuxt Supabase module:

So, one has to manually sync those two ENVs in Vercel.

Describe the solution you'd like

Let's use the naming of the ENVs as Supabase itself does. This will enable the sync feature in Vercel (and possibly integrations with other Supabase partners).

I recognize that this would break existing installations, so the module would have to check for old and new namings (at least for a grace period before the old names become deprecated).

Thanks for considering that.

Describe alternatives you've considered

Manual sync.