gcs-backend-server / lib /supabaseClient.js
github-actions[bot]
chore: deploy from GitHub Actions (2026-03-08T13:13:40Z)
d9d886e
Raw History Blame Contribute Delete
732 Bytes
/**
* Supabase Client Initialization for GCS Backend
* Connects to Supabase cloud database and storage
*/
const { createClient } = require('@supabase/supabase-js')
require('dotenv').config()
const supabaseUrl = process.env.SUPABASE_URL
const supabaseKey = process.env.SUPABASE_ANON_KEY
if (!supabaseUrl || !supabaseKey) {
console.warn('[SUPABASE] ⚠️ Warning: Supabase credentials not found in environment variables')
console.warn('[SUPABASE] Please set SUPABASE_URL and SUPABASE_ANON_KEY in .env file')
}
const supabase = createClient(supabaseUrl, supabaseKey, {
auth: {
persistSession: false,
autoRefreshToken: false
}
})
console.log('[SUPABASE] ✓ Client initialized')
module.exports = { supabase }