Nathan
Security: Fresh clean migration to GitHub
36d488d
Raw History Blame Contribute Delete
427 Bytes
const { createClient } = require('@supabase/supabase-js');
const path = require('path');
require('dotenv').config({ path: path.join(__dirname, '..', '.env') });
const supabaseUrl = process.env.SUPABASE_URL;
const supabaseKey = process.env.SUPABASE_KEY;
if (!supabaseUrl || !supabaseKey) {
console.error('❌ Supabase URL or Key missing in .env');
}
const db = createClient(supabaseUrl, supabaseKey);
module.exports = db;