Skip to content

Commit

Permalink
Merge branch 'main' into charlottelaw/jdi-10-home-page-navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
philipye314 authored Oct 6, 2024
2 parents a393ed8 + 3518eff commit 91a6613
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/supabase/createClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { createClient } from '@supabase/supabase-js';

// Create a single supabase client for interacting with your database
if (
!process.env.EXPO_PUBLIC_SUPABASE_URL ||
!process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY
) {
throw new Error('Supabase environment variables are not defined.');
}
const supabase = createClient(
process.env.EXPO_PUBLIC_SUPABASE_URL,
process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY,
);

export default supabase;

0 comments on commit 91a6613

Please sign in to comment.