Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit ef98deb

Browse files
committed
add: create supabase client
1 parent 08dc444 commit ef98deb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/services/supabaseClient.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { SUPABASE_KEY, SUPABASE_URL } from '@env';
2+
import { createClient } from '@supabase/supabase-js';
3+
4+
if (!SUPABASE_URL || !SUPABASE_KEY) {
5+
throw new Error('Missing Supabase environment variables');
6+
}
7+
8+
const supabase = createClient(SUPABASE_URL, SUPABASE_KEY);
9+
10+
export default supabase;

0 commit comments

Comments
 (0)