Spaces:
Sleeping
Sleeping
Download server/src/config/supabaseClient.ts from Leoj030/express_backend: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Leoj030/express_backend/resolve/main/server/src/config/supabaseClient.ts
- Command line
-
hf download hf://spaces/Leoj030/express_backend/server/src/config/supabaseClient.ts
-
curl -L -o supabaseClient.ts https://huggingface.co/spaces/Leoj030/express_backend/resolve/main/server/src/config/supabaseClient.ts
375 Bytes
| import { createClient } from '@supabase/supabase-js'; | |
| const supabaseUrl: string | undefined = process.env.PUBLIC_SUPABASE_URL; | |
| const supabaseAnonKey: string | undefined = process.env.PUBLIC_SUPABASE_ANON_KEY; | |
| if (!supabaseUrl || !supabaseAnonKey) { | |
| throw new Error('Missing environment variables'); | |
| }; | |
| export const supabase = createClient(supabaseUrl, supabaseAnonKey); | |