From 488e372390fa000a3f5487892130abef5e704803 Mon Sep 17 00:00:00 2001 From: benitav Date: Tue, 20 Feb 2024 13:22:05 +0200 Subject: [PATCH 1/2] Update demo app credentials --- demos/nextjs-supabase-todolist/.env.local.template | 8 +++++--- demos/react-native-supabase-group-chat/.env | 9 +++++---- .../library/supabase/AppConfig.template.ts | 13 +++++++------ 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/demos/nextjs-supabase-todolist/.env.local.template b/demos/nextjs-supabase-todolist/.env.local.template index 63d2a5ae..d0ff1b8f 100644 --- a/demos/nextjs-supabase-todolist/.env.local.template +++ b/demos/nextjs-supabase-todolist/.env.local.template @@ -1,3 +1,5 @@ -SUPABASE_URL= -SUPABASE_ANON_KEY= -POWERSYNC_URL= \ No newline at end of file +# Copy this template: `cp .env.local.template .env.local` +# Edit .env.local and enter your Supabase and PowerSync project details. +SUPABASE_URL=https://foo.supabase.co +SUPABASE_ANON_KEY=foo +POWERSYNC_URL=https://foo.powersync.journeyapps.com \ No newline at end of file diff --git a/demos/react-native-supabase-group-chat/.env b/demos/react-native-supabase-group-chat/.env index 6723e42a..7235ba2d 100644 --- a/demos/react-native-supabase-group-chat/.env +++ b/demos/react-native-supabase-group-chat/.env @@ -1,4 +1,5 @@ -EXPO_PUBLIC_SUPABASE_URL=https://durbqntqcbthnzeyncft.supabase.co -EXPO_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR1cmJxbnRxY2J0aG56ZXluY2Z0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTYzOTk0MDksImV4cCI6MjAxMTk3NTQwOX0.mbYtqYHt6vX1K5p9KjjLgiCmveWkHdSUH3dgdVTHBNs -EXPO_PUBLIC_POWERSYNC_URL=https://652c8d6e54e498b08255ab81.powersync.journeyapps.com -EXPO_PUBLIC_EAS_PROJECT_ID=c08eefc9-7b5b-487e-85c7-22e14b7287c0 +# Replace the credentials below with you Supabase, PowerSync and Expo project details. +EXPO_PUBLIC_SUPABASE_URL=https://foo.supabase.co +EXPO_PUBLIC_SUPABASE_ANON_KEY=foo +EXPO_PUBLIC_POWERSYNC_URL=https://foo.powersync.journeyapps.com +EXPO_PUBLIC_EAS_PROJECT_ID=foo diff --git a/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts b/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts index 7fc2f087..8dd4784f 100644 --- a/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts +++ b/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts @@ -1,9 +1,10 @@ /** - * TODO! Rename to AppConfig.ts and insert secrets + * Copy this template: `cp library/supabase/AppConfig.template.ts library/supabase/AppConfig.ts` + * Edit library/supabase/AppConfig.ts and enter your Supabase and PowerSync project details. */ export const AppConfig = { - supabaseUrl: '', - supabaseAnonKey: '', - supabaseBucket: '', // Optional, set if you want to use attachments and upload to Supabase Storage - powersyncUrl: '' -}; + supabaseUrl: 'https://foo.supabase.co', + supabaseAnonKey: 'foo', + supabaseBucket: '', // Optional. Only required when syncing attachments with Supabase Storage. See packages/powersync-attachments. + powersyncUrl: 'https://foo.powersync.journeyapps.com' +}; \ No newline at end of file From 238382ef7066b1a82cbccc58e5b8dec894d81f48 Mon Sep 17 00:00:00 2001 From: benitav Date: Wed, 21 Feb 2024 08:53:19 +0200 Subject: [PATCH 2/2] Update demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts --- .../library/supabase/AppConfig.template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts b/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts index 8dd4784f..cb0b088b 100644 --- a/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts +++ b/demos/react-native-supabase-todolist/library/supabase/AppConfig.template.ts @@ -5,6 +5,6 @@ export const AppConfig = { supabaseUrl: 'https://foo.supabase.co', supabaseAnonKey: 'foo', - supabaseBucket: '', // Optional. Only required when syncing attachments with Supabase Storage. See packages/powersync-attachments. + supabaseBucket: '', // Optional. Only required when syncing attachments and using Supabase Storage. See packages/powersync-attachments. powersyncUrl: 'https://foo.powersync.journeyapps.com' }; \ No newline at end of file