16 lines
469 B
TypeScript
16 lines
469 B
TypeScript
import { createClient } from '@supabase/supabase-js'
|
|
|
|
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
|
|
const supabaseKey = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY
|
|
|
|
if (!supabaseUrl || !supabaseKey) {
|
|
throw new Error('Missing Supabase environment variables')
|
|
}
|
|
|
|
export const supabase = createClient(supabaseUrl, supabaseKey, {
|
|
auth: {
|
|
// Email confirmation and password recovery are handled by route components.
|
|
detectSessionInUrl: false,
|
|
},
|
|
})
|