mirror of
https://github.com/nagaoo0/HabbitGrid.git
synced 2026-01-12 07:54:53 +00:00
12 lines
387 B
JavaScript
12 lines
387 B
JavaScript
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);
|