Skip to content

Commit 0b21500

Browse files
committed
Unignore PowerSync env file
1 parent 7e0e1cb commit 0b21500

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

demos/example-nextjs/.env.local.template

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,14 @@
11
# Copy this file: cp .env.local.template .env.local
22
#
3-
# This is the single source of truth for all environment variables.
4-
# Docker Compose reads this file directly (via env_file), so you only
5-
# ever need to edit one file. Note: Docker Compose does not expand
6-
# ${VAR} references inside env_file, so all values are written out in full.
3+
# App-level environment variables for Next.js.
4+
# Docker Compose variables live in powersync/docker/.env.
75

86
# ── PowerSync service ────────────────────────────────────────────────────────
97
POWERSYNC_URL=http://localhost:8080
108

11-
# ── Application database (Postgres) ──────────────────────────────────────────
12-
PS_DATABASE_USER=postgres
13-
PS_DATABASE_PASSWORD=changeme
14-
PS_DATABASE_NAME=postgres
15-
PS_DATABASE_PORT=5432
16-
179
# Used by Next.js API routes (localhost, since it runs outside Docker)
1810
DATABASE_URL=postgresql://postgres:changeme@localhost:5432/postgres
1911

20-
# ── PowerSync storage database (internal) ────────────────────────────────────
21-
PS_STORAGE_USER=postgres
22-
PS_STORAGE_PASSWORD=changeme
23-
PS_STORAGE_DATABASE=powersync_storage
24-
PS_STORAGE_PORT=5433
25-
26-
# ── Docker-internal URIs (pg-db / pg-storage are Docker service names) ────────
27-
PS_DATA_SOURCE_URI=postgresql://postgres:changeme@pg-db:5432/postgres
28-
PS_STORAGE_SOURCE_URI=postgresql://postgres:changeme@pg-storage:5433/powersync_storage
29-
3012
# ── Optional ──────────────────────────────────────────────────────────────────
3113
# JWT_ISSUER=powersync-nextjs-demo
3214
# POWERSYNC_PRIVATE_KEY=<base64-encoded JWK>

demos/example-nextjs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ yarn-debug.log*
2525
# local env files
2626
.env*.local
2727

28+
# unignore docker env (overrides root .gitignore)
29+
!powersync/docker/.env
30+
2831
# vercel
2932
.vercel
3033

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ── Application database (Postgres) ──────────────────────────────────────────
2+
PS_DATABASE_USER=postgres
3+
PS_DATABASE_PASSWORD=changeme
4+
PS_DATABASE_NAME=postgres
5+
PS_DATABASE_PORT=5432
6+
7+
# ── PowerSync storage database (internal) ────────────────────────────────────
8+
PS_STORAGE_USER=postgres
9+
PS_STORAGE_PASSWORD=changeme
10+
PS_STORAGE_DATABASE=powersync_storage
11+
PS_STORAGE_PORT=5433
12+
13+
# ── Docker-internal URIs (pg-db / pg-storage are Docker service names) ────────
14+
PS_DATA_SOURCE_URI=postgresql://postgres:changeme@pg-db:5432/postgres
15+
PS_STORAGE_SOURCE_URI=postgresql://postgres:changeme@pg-storage:5433/powersync_storage

0 commit comments

Comments
 (0)