import { createClient } from '@supabase/supabase-js' const url = import.meta.env.VITE_SUPABASE_URL const anonKey = import.meta.env.VITE_SUPABASE_ANON_KEY if (!url || !anonKey) { throw new Error( 'Missing VITE_SUPABASE_URL / VITE_SUPABASE_ANON_KEY. Copy .env.example to .env.local and fill them in ' + '(run `npx supabase start` then `npx supabase status` for local values).', ) } export const supabase = createClient(url, anonKey)