File size: 398 Bytes
13be420
 
 
 
f923740
13be420
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
// config/supabaseClient.js
import { createClient } from '@supabase/supabase-js';

const supabaseUrl = process.env.SUPABASE_URL;
const supabaseKey = process.env.SUPABASE_SERVICE_KEY; // MUST use Service Role Key for backend admin tasks

if (!supabaseUrl || !supabaseKey) {
    console.error("🚨 Missing Supabase Env Variables!");
}

export const supabase = createClient(supabaseUrl, supabaseKey);