Update Supabase client to use environment variables
This commit is contained in:
parent
d7d3f3211f
commit
e244b9f9fd
1 changed files with 5 additions and 2 deletions
|
|
@ -1,3 +1,6 @@
|
|||
const supabase = createClient('https://your-project.supabase.co', 'your-anon-key');
|
||||
import { createClient } from '@supabase/supabase-js';
|
||||
|
||||
export default supabase;
|
||||
export const supabase = createClient(
|
||||
process.env.VITE_SUPABASE_URL as string,
|
||||
process.env.VITE_SUPABASE_ANON_KEY as string
|
||||
);
|
||||
Loading…
Reference in a new issue