portfolio/lib/supabase.ts

9 lines
318 B
TypeScript
Raw Normal View History

2023-04-10 00:08:52 +00:00
import {createClient} from '@supabase/supabase-js'
const NEXT_PUBLIC_SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL ?? ""
const NEXT_PUBLIC_SUPABASE_ANON_KEY = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? ""
2023-04-10 00:08:52 +00:00
export const supabase = createClient(
NEXT_PUBLIC_SUPABASE_URL,
NEXT_PUBLIC_SUPABASE_ANON_KEY
2023-04-10 00:08:52 +00:00
)