Spaces:
Sleeping
Sleeping
File size: 421 Bytes
7ff860b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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,
},
});
|