Skip to content

Commit

Permalink
Merge pull request #74 from powersync-ja/testing-credentials
Browse files Browse the repository at this point in the history
Improve demo app credentials instructions and remove default project details
  • Loading branch information
benitav authored Feb 23, 2024
2 parents 876b1ad + 238382e commit 3a1b8fd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
8 changes: 5 additions & 3 deletions demos/nextjs-supabase-todolist/.env.local.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SUPABASE_URL=
SUPABASE_ANON_KEY=
POWERSYNC_URL=
# 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
9 changes: 5 additions & 4 deletions demos/react-native-supabase-group-chat/.env
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 and using Supabase Storage. See packages/powersync-attachments.
powersyncUrl: 'https://foo.powersync.journeyapps.com'
};

0 comments on commit 3a1b8fd

Please sign in to comment.