drfeely.com/website/shared/initSupabase.ts

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