Skip to main content

supabase-client

Connecting to Supabase

Credentials including the supabaseUrl and supabaseAnonKey should be added here using environmental variables

Create a file at utils/supabaseClient.js:

utils/supabaseClient.js
import { createClient } from "@supabase/supabase-js";

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;

export const supabase = createClient(supabaseUrl, supabaseAnonKey);