🚀 Auto-deploy: GPI atualizado em 10/08/2026 00:57:32
This commit is contained in:
@@ -2,11 +2,11 @@ import { createClient } from '@supabase/supabase-js';
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
const supabaseUrl = process.env.SUPABASE_URL || 'https://supabase.reifonas.cloud';
|
||||
const supabaseUrl = process.env.SUPABASE_URL;
|
||||
const supabaseServiceKey = process.env.SUPABASE_SERVICE_ROLE_KEY;
|
||||
|
||||
if (!supabaseServiceKey) {
|
||||
throw new Error('❌ SUPABASE_SERVICE_ROLE_KEY is missing in environment variables');
|
||||
if (!supabaseUrl || !supabaseServiceKey) {
|
||||
throw new Error('❌ SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY must be provided in environment variables');
|
||||
}
|
||||
|
||||
export const GPI_SCHEMA = 'public';
|
||||
@@ -68,5 +68,3 @@ export async function findOneGpi(table: string, filters: Record<string, any>) {
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
console.log('✅ Supabase client initialized');
|
||||
|
||||
Reference in New Issue
Block a user