🚀 Auto-deploy: GPI atualizado em 10/08/2026 00:57:32

This commit is contained in:
2026-08-10 00:57:32 +00:00
parent d3ed824d81
commit 0a8bd86218
28 changed files with 1605 additions and 818 deletions
+3 -5
View File
@@ -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');