12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
|
|
|
||
|
|
import { createClient } from '@supabase/supabase-js';
|
||
|
|
|
||
|
|
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
|
||
|
|
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
|
||
|
|
|
||
|
|
if (!supabaseUrl || !supabaseAnonKey) {
|
||
|
|
console.error('Missing Supabase environment variables');
|
||
|
|
}
|
||
|
|
|
||
|
|
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
|