File size: 375 Bytes
50a7502
 
 
 
 
 
 
9c0b56e
50a7502
 
1
2
3
4
5
6
7
8
9
10
11
import { createClient } from '@supabase/supabase-js';

const supabaseUrl: string | undefined = process.env.PUBLIC_SUPABASE_URL;
const supabaseAnonKey: string | undefined = process.env.PUBLIC_SUPABASE_ANON_KEY;

if (!supabaseUrl || !supabaseAnonKey) {
  throw new Error('Missing environment variables');
};

export const supabase = createClient(supabaseUrl, supabaseAnonKey);