| import { createClient } from '@supabase/supabase-js'; | |
| import { getSupabaseAnonKey, getSupabaseUrl } from './runtimeConfig'; | |
| const supabaseUrl = getSupabaseUrl(); | |
| const supabaseAnonKey = getSupabaseAnonKey(); | |
| if (!supabaseUrl || !supabaseAnonKey) { | |
| console.warn('Supabase credentials missing. Please check your .env file.'); | |
| } | |
| export const supabase = createClient( | |
| supabaseUrl || 'https://placeholder.supabase.co', | |
| supabaseAnonKey || 'placeholder-key' | |
| ); | |