Spaces:
Running
Running
iDevBuddy
feat: Add Slack Events integration, Dockerfiles, and Hugging Face deployment config
5f138d4 | import { createClient } from "@supabase/supabase-js"; | |
| import { getEnv } from "../config/env"; | |
| let _client: ReturnType<typeof createClient> | null = null; | |
| export function getSupabaseClient() { | |
| if (!_client) { | |
| const env = getEnv(); | |
| _client = createClient(env.SUPABASE_URL, env.SUPABASE_SERVICE_ROLE_KEY, { | |
| auth: { persistSession: false }, | |
| }); | |
| } | |
| return _client; | |
| } | |