13 lines
489 B
TypeScript
13 lines
489 B
TypeScript
import Constants from 'expo-constants';
|
|
import { createClient } from '@supabase/supabase-js';
|
|
|
|
const supabaseUrl =
|
|
Constants.expoConfig?.extra?.supabaseUrl ?? 'https://your-project.supabase.co';
|
|
const supabaseAnonKey =
|
|
Constants.expoConfig?.extra?.supabaseAnonKey ?? 'your-anon-key';
|
|
|
|
// Replace the fallback values above with environment-backed Expo config
|
|
// when you wire the project to a real Supabase instance.
|
|
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
|
|
|