Spaces:
Sleeping
Sleeping
| import { createClient } from '@supabase/supabase-js'; | |
| import type { Database } from './types'; | |
| const supabaseUrl = import.meta.env.VITE_SUPABASE_URL as string; | |
| const supabaseKey = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY as string; | |
| export const supabase = createClient<Database>(supabaseUrl, supabaseKey, { | |
| auth: { | |
| storage: window.localStorage, | |
| persistSession: true, | |
| autoRefreshToken: true, | |
| }, | |
| }); | |