Skip to content

Commit da2aec2

Browse files
Updates README to include all .env values
1 parent cc9eb26 commit da2aec2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

demos/CommandLine/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ By default, this demo uses the NodeConnector for connecting to the PowerSync ser
2424

2525
2. Replace the necessary fields in the `.env` file with your Supabase and PowerSync credentials:
2626
```
27-
SUPABASE_URL=your_supabase_url
28-
SUPABASE_ANON_KEY=your_supabase_anon_key
29-
POWERSYNC_URL=your_powersync_url
27+
SUPABASE_URL=your-supabase-url
28+
SUPABASE_ANON_KEY=your_anon_key_here
29+
POWERSYNC_URL=your-powersync-url
30+
BACKEND_URL=your-backend-url
31+
SUPABASE_USERNAME=your-supabase-username
32+
SUPABASE_PASSWORD=your-supabase-password
33+
# Set to true if you want to use Supabase as the backend
34+
# Set to false if you want to use the Powersync backend
35+
USE_SUPABASE=true
3036
```
3137

3238
3. Update your connector configuration to use SupabaseConnector instead of NodeConnector

demos/CommandLine/Utils/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Config()
1717
DotEnv.Load();
1818
Console.WriteLine($"Current directory: {Directory.GetCurrentDirectory()}");
1919

20-
// Retrieve the environment variables
20+
// Retrieve the environment variables (Not all of these are required)
2121
SupabaseUrl = Environment.GetEnvironmentVariable("SUPABASE_URL")
2222
?? throw new InvalidOperationException("SUPABASE_URL environment variable is not set.");
2323
SupabaseAnonKey = Environment.GetEnvironmentVariable("SUPABASE_ANON_KEY")

0 commit comments

Comments
 (0)