Spaces:
Running
Running
Download config/supabaseClient.js from everydaycats/everything: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/everydaycats/everything/resolve/main/config/supabaseClient.js
- Command line
-
hf download hf://spaces/everydaycats/everything/config/supabaseClient.js
-
curl -L -o supabaseClient.js https://huggingface.co/spaces/everydaycats/everything/resolve/main/config/supabaseClient.js
398 Bytes
| // config/supabaseClient.js | |
| import { createClient } from '@supabase/supabase-js'; | |
| const supabaseUrl = process.env.SUPABASE_URL; | |
| const supabaseKey = process.env.SUPABASE_SERVICE_KEY; // MUST use Service Role Key for backend admin tasks | |
| if (!supabaseUrl || !supabaseKey) { | |
| console.error("🚨 Missing Supabase Env Variables!"); | |
| } | |
| export const supabase = createClient(supabaseUrl, supabaseKey); |