Spaces:
Running
Running
| import { createClient } from "@supabase/supabase-js"; | |
| // Remove debug log in production | |
| console.log("Supabase URL:", import.meta.env.VITE_SUPABASE_URL); | |
| console.log("Supabase Anon Key:", import.meta.env.VITE_SUPABASE_ANON_KEY ? "Present" : "Missing"); | |
| const supabaseUrl = import.meta.env.VITE_SUPABASE_URL; | |
| const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY; | |
| if (!supabaseUrl || !supabaseAnonKey) { | |
| throw new Error("Missing Supabase environment variables"); | |
| } | |
| export const supabase = createClient(supabaseUrl, supabaseAnonKey); | |