From 5cece5a2599c70b499872a8e122257200dfa94ef Mon Sep 17 00:00:00 2001 From: Jonathan Bangert Date: Fri, 20 Dec 2024 13:59:53 -0700 Subject: [PATCH] Fix builds / add envs --- App.tsx | 9 --------- lib/supabase.ts | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/App.tsx b/App.tsx index 86a8164..59cd2d9 100644 --- a/App.tsx +++ b/App.tsx @@ -25,12 +25,3 @@ export default function App() { ); } - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: "#fff", - alignItems: "center", - justifyContent: "center", - }, -}); diff --git a/lib/supabase.ts b/lib/supabase.ts index a5bf57a..6eebf4d 100644 --- a/lib/supabase.ts +++ b/lib/supabase.ts @@ -3,8 +3,8 @@ import "react-native-url-polyfill/auto"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { createClient } from "@supabase/supabase-js"; -const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL; -const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY; +const supabaseUrl = process.env.EXPO_PUBLIC_SUPABASE_URL || ""; +const supabaseAnonKey = process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY || ""; export const supabase = createClient(supabaseUrl, supabaseAnonKey, { auth: {