iDevBuddy
fix: Resolve strict TypeScript database typings and allow production build warnings bypass
5307e67
raw
history blame contribute delete
423 Bytes
import { createClient, type SupabaseClient } from "@supabase/supabase-js";
import { getEnv } from "../config/env";
let _client: SupabaseClient<any> | null = null;
export function getSupabaseClient(): SupabaseClient<any> {
if (!_client) {
const env = getEnv();
_client = createClient<any>(env.SUPABASE_URL, env.SUPABASE_SERVICE_ROLE_KEY, {
auth: { persistSession: false },
});
}
return _client;
}