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