Spaces:
Runtime error
Runtime error
Download src/lib/supabase.ts from lasource87/bot: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/lasource87/bot/resolve/main/src/lib/supabase.ts
- Command line
-
hf download hf://spaces/lasource87/bot/src/lib/supabase.ts
-
curl -L -o supabase.ts https://huggingface.co/spaces/lasource87/bot/resolve/main/src/lib/supabase.ts
420 Bytes
| 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(); | |
| } | |