Spaces:
Sleeping
Sleeping
File size: 384 Bytes
50a7502 | 1 2 3 4 5 6 7 8 9 10 11 | 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);
|