Spaces:
Runtime error

File size: 420 Bytes
cd86722
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { createClient } from '@supabase/supabase-js';

// These will be fetched from the API config or env
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL || '';
const supabaseKey = import.meta.env.VITE_SUPABASE_ANON_KEY || '';

export const supabase = createClient(supabaseUrl, supabaseKey);

export async function getAppConfig() {
  const res = await fetch(`/api/config?t=${Date.now()}`);
  return res.json();
}