drfeely.com/shared/initSupabase.ts
2023-10-20 14:25:25 -05:00

8 lines
289 B
TypeScript

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);