File size: 463 Bytes
81ff144 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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'
);
|