aubm / frontend /src /services /supabase.ts
cesjavi's picture
Deploy Aubm Docker Space
81ff144
raw
history blame contribute delete
463 Bytes
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'
);