VidSimplify / frontend /src /lib /supabase-client.ts
Adityahulk
Restoring repo state for deployment
6fc3143
import { createClient } from "@supabase/supabase-js";
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL || "";
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY || process.env.NEXT_PUBLIC_SUPABASE_KEY || "";
// WARNING: Using Service Role Key on client is risky but used here for immediate fix.
// Ideally, use NEXT_PUBLIC_SUPABASE_ANON_KEY.
export const supabaseClient = createClient(supabaseUrl, supabaseKey);