From e244b9f9fd6aa4091010819d97569c5ab68957a6 Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 8 Jun 2026 07:33:04 +0000 Subject: [PATCH] Update Supabase client to use environment variables --- src/lib/supabase.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts index 0b33f76..828e280 100644 --- a/src/lib/supabase.ts +++ b/src/lib/supabase.ts @@ -1,3 +1,6 @@ -const supabase = createClient('https://your-project.supabase.co', 'your-anon-key'); +import { createClient } from '@supabase/supabase-js'; -export default supabase; \ No newline at end of file +export const supabase = createClient( + process.env.VITE_SUPABASE_URL as string, + process.env.VITE_SUPABASE_ANON_KEY as string +); \ No newline at end of file