The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
refactor: change the content of .env.local file of code block to all… (#26671)
Mohammed Yasin Mulla2dc39a75a084
diff --git a/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsxindex 820bac7fe5f..815e4ce5749 100644--- a/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx+++ b/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx@@ -20,8 +20,8 @@ const ContentFile = ({ projectKeys }: ContentFileProps) => {<ConnectTabContent value=".env.local"><SimpleCodeBlock className="bash" parentClassName="min-h-72">{`-SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}-SUPABASE_ANON_KEY=${projectKeys.anonKey ?? 'your-anon-key'}+EXPO_PUBLIC_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'}+EXPO_PUBLIC_SUPABASE_ANON_KEY=${projectKeys.anonKey ?? 'your-anon-key'}`}</SimpleCodeBlock></ConnectTabContent>@@ -32,16 +32,18 @@ SUPABASE_ANON_KEY=${projectKeys.anonKey ?? 'your-anon-key'}import 'react-native-url-polyfill/auto'import AsyncStorage from '@react-native-async-storage/async-storage'import { createClient } from '@supabase/supabase-js'-import { SUPABASE_URL, SUPABASE_ANON_KEY } from "@env";-export const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {- auth: {- storage: AsyncStorage,- autoRefreshToken: true,- persistSession: true,- detectSessionInUrl: false,- },-})+export const supabase = createClient(+ process.env.EXPO_PUBLIC_SUPABASE_URL || "",+ process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY || "",+ {+ auth: {+ storage: AsyncStorage,+ autoRefreshToken: true,+ persistSession: true,+ detectSessionInUrl: false,+ },+ })`}</SimpleCodeBlock></ConnectTabContent>