mirror of
https://github.com/siv-org/siv.git
synced 2026-01-13 20:28:00 -05:00
9 lines
338 B
TypeScript
9 lines
338 B
TypeScript
import { createClient } from '@supabase/supabase-js'
|
|
|
|
const { SUPABASE_ADMIN_KEY, SUPABASE_DB_URL } = process.env
|
|
|
|
if (!SUPABASE_ADMIN_KEY) throw new TypeError('SUPABASE_ADMIN_KEY undefined')
|
|
if (!SUPABASE_DB_URL) throw new TypeError('SUPABASE_DB_URL undefined')
|
|
|
|
export const supabase = createClient(SUPABASE_DB_URL, SUPABASE_ADMIN_KEY)
|