Add supabase setup

This commit is contained in:
2025-10-17 22:10:57 +02:00
parent 237052ce35
commit 2b6b515d47
16 changed files with 599 additions and 23 deletions

11
src/lib/supabase.js Normal file
View File

@@ -0,0 +1,11 @@
import { createClient } from '@supabase/supabase-js';
// Expect env vars provided by Vite
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
export const supabase = (supabaseUrl && supabaseAnonKey)
? createClient(supabaseUrl, supabaseAnonKey)
: null;
export const isSupabaseConfigured = () => Boolean(supabase);