Supabase client wrapper

cgen-25038d95899246ef877143c34afc2184
This commit is contained in:
Builder.io 2025-09-18 05:00:48 +00:00
parent 5ffa2cf862
commit 966aef4e61

View file

@ -0,0 +1,5 @@
import { createClient, SupabaseClient } from '@supabase/supabase-js';
const url = process.env.SUPABASE_URL as string;
const key = process.env.SUPABASE_ANON_KEY as string;
export const supabase: SupabaseClient | undefined = url && key ? createClient(url, key) : undefined;