🚆 Connect to Supabase

How to connect to the Supabase client

Command to install Supabase React Auth helper:

yarn add @supabase/auth-ui-react

Command to install Supabase JS Client:

yarn add @supabase/supabase-js

supa-client.ts

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

const supabaseUrl = (import.meta as any).env.VITE_SUPABASE_API_URL;
const supabaseKey = (import.meta as any).env.VITE_SUPABASE_ANON_KEY;

export const supaClient = createClient(supabaseUrl, supabaseKey);

Supabase JS Client Reference Docs: https://supabase.com/docs/reference/javascript

Questions? Let's chat

Open Discord