drfeely.com/shared/initSupabase.ts

9 lines
289 B
TypeScript
Raw Normal View History

2023-09-11 05:22:51 +00:00
import { createClient } from "@supabase/supabase-js";
let supabaseURL = process.env.NEXT_PUBLIC_SUPABASE_URL;
supabaseURL ??= "";
let supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
supabaseAnonKey ??= "";
export const supabase = createClient(supabaseURL, supabaseAnonKey);