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()