express_backend / client /src /utils /supabaseClient.ts
Joel Refuerzo
Initial commit: add client and server
50a7502
Raw History Blame Contribute Delete
384 Bytes
import { createClient } from '@supabase/supabase-js';
const supabaseUrl: string | undefined = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseAnonKey: string | undefined = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
if (!supabaseUrl || !supabaseAnonKey) {
throw new Error('Missing environment variables');
}
export const supabase = createClient(supabaseUrl, supabaseAnonKey);