supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Is it possible to have multiple Supabase instances?

Open phillipmohr opened this issue 2 years ago • 1 comments

I have...

  • 1 Nuxt Website
  • 2 Supabase Projects

I want to...

  • Build a CRUD View and do changes in both Supabase projects

Is something like that possible?

const project1 = useSupabaseClient({
    supabase_url: process.env.supabase_project_url_1,
    supabase_key: process.env.supabase_project_key_1
});
const project2 = useSupabaseClient({
    supabase_url: process.env.supabase_project_url_2,
    supabase_key: process.env.supabase_project_key_2
});

... or how could I accomplish that?

Thanks in advance

phillipmohr avatar Mar 25 '23 06:03 phillipmohr

Hey, not sure how relevant that is, but from my understanding you'd want to use the underlaying library, https://github.com/supabase/supabase-js/, for this. Using the nuxt module creates one instance that's heavily connected/integrated to your Nuxt configuration, and tinkering with this will (in my understanding) only lead to problems

pascalwengerter avatar Sep 06 '24 09:09 pascalwengerter

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar May 06 '25 14:05 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Jun 05 '25 16:06 github-actions[bot]