Mirror-Backend / backend /db /database.py
Harsh200415's picture
Profile intelligence, context-aware baselines, and Mirror Feed
d4c6e81
Raw
History Blame Contribute Delete
361 Bytes
import os
from supabase import create_client, Client
def _make_admin_client() -> Client:
url = os.getenv("SUPABASE_URL")
key = os.getenv("SUPABASE_SERVICE_KEY")
if not url or not key:
raise RuntimeError("SUPABASE_URL and SUPABASE_SERVICE_KEY must be set in .env")
return create_client(url, key)
supabase_admin = _make_admin_client()