Skip to content

Commit 3a68c9d

Browse files
soc: use a different env template for cloud setups
1 parent cc1d712 commit 3a68c9d

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.env.cloud.template

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cloud Environment Configuration
2+
# Copy this template: `cp .env.cloud.template .env.local`
3+
# Edit .env.local and enter your Supabase and PowerSync project details.
4+
5+
# Supabase Configuration
6+
VITE_SUPABASE_URL=https://<your-project-id>.supabase.co
7+
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.<replace-with-your-anon-key>
8+
9+
# PowerSync Configuration
10+
VITE_POWERSYNC_URL=https://<your-project-id>.powersync.journeyapps.com

.env.local.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
# Self-hosted Environment Configuration
12
# Copy this template: `cp .env.local.template .env.local`
23
# Edit .env.local and enter your Supabase and PowerSync project details.
4+
35
VITE_SUPABASE_URL=http://localhost:54321
46
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
57
VITE_POWERSYNC_URL=http://localhost:8080
68

7-
# PowerSync configuration
9+
# Self-hosted PowerSync Configuration
810
PS_POSTGRESQL_URI=postgresql://postgres:postgres@supabase_db_powersync:5432/postgres
911
PS_SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
1012
PS_API_TOKEN=super-secret

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Follow the prompts to configure:
143143

144144
First, copy the environment template file:
145145
```bash
146-
cp .env.local.template .env.local
146+
cp .env.cloud.template .env.local
147147
```
148148

149149
Then set the following environment variables in your `.env.local` file:

0 commit comments

Comments
 (0)