@korajs/cli 1.0.0-beta.13 → 1.0.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ PORT=3001
7
7
 
8
8
  # Server database
9
9
  # Leave DATABASE_URL empty to use SQLite at KORA_SERVER_DB.
10
- KORA_SERVER_DB=./kora-server.db
10
+ KORA_SERVER_DB=./.kora/kora-server.db
11
11
  DATABASE_URL=
12
12
 
13
13
  # Operational endpoints (/__kora, /__kora/status, /__kora/events, /__kora/metrics, backups)
@@ -9,7 +9,7 @@ PORT=3001
9
9
  # Server database
10
10
  # Leave DATABASE_URL empty to use SQLite at KORA_SERVER_DB.
11
11
  # Set DATABASE_URL for cloud Postgres deployments.
12
- KORA_SERVER_DB=./kora-server.db
12
+ KORA_SERVER_DB=./.kora/kora-server.db
13
13
  DATABASE_URL=
14
14
 
15
15
  # Operational endpoints (/__kora, /__kora/status, /__kora/events, /__kora/metrics, backups)
@@ -136,8 +136,8 @@ Users can also skip setup and use the app offline — they can connect later fro
136
136
  | `VITE_SYNC_URL` | (none) | Pre-configure sync URL at build time |
137
137
  | `VITE_AUTH_URL` | derived from sync URL | HTTP URL for `/auth/*` routes |
138
138
  | `PORT` | `3001` | Sync server port |
139
- | `KORA_SERVER_DB` | `./kora-server.db` | SQLite file used by the sync server when `DATABASE_URL` is empty |
140
- | `KORA_AUTH_DB` | `./kora-auth.db` | SQLite file used by OAuth state and linked identities when `DATABASE_URL` is empty |
139
+ | `KORA_SERVER_DB` | `./.kora/kora-server.db` | SQLite file used by the sync server when `DATABASE_URL` is empty |
140
+ | `KORA_AUTH_DB` | `./.kora/kora-auth.db` | SQLite file used by OAuth state and linked identities when `DATABASE_URL` is empty |
141
141
  | `DATABASE_URL` | (none) | PostgreSQL connection string for production sync server deployments |
142
142
  | `KORA_SYNC_PATH` | `/kora-sync` | WebSocket path exposed by the sync server |
143
143
  | `KORA_AUTH_SECRET` | (none) | Enables built-in `/auth/*` routes and authenticated sync when set |
@@ -70,7 +70,7 @@ async function createStore() {
70
70
  }
71
71
 
72
72
  return createSqliteServerStore({
73
- filename: process.env.KORA_SERVER_DB || './kora-server.db',
73
+ filename: process.env.KORA_SERVER_DB || './.kora/kora-server.db',
74
74
  })
75
75
  }
76
76
 
@@ -130,7 +130,7 @@ async function createOAuthConfig(): Promise<CreateKoraAuthServerOptions['oauth']
130
130
  const oauthStores = process.env.DATABASE_URL
131
131
  ? await createPostgresOAuthStores({ connectionString: process.env.DATABASE_URL })
132
132
  : await createSqliteOAuthStores({
133
- filename: process.env.KORA_AUTH_DB || './kora-auth.db',
133
+ filename: process.env.KORA_AUTH_DB || './.kora/kora-auth.db',
134
134
  })
135
135
 
136
136
  return {
@@ -7,7 +7,7 @@ PORT=3001
7
7
 
8
8
  # Server database
9
9
  # Leave DATABASE_URL empty to use SQLite at KORA_SERVER_DB.
10
- KORA_SERVER_DB=./kora-server.db
10
+ KORA_SERVER_DB=./.kora/kora-server.db
11
11
  DATABASE_URL=
12
12
 
13
13
  # Operational endpoints (/__kora, /__kora/status, /__kora/events, /__kora/metrics, backups)
@@ -7,7 +7,7 @@ PORT=3001
7
7
 
8
8
  # Server database
9
9
  # Leave DATABASE_URL empty to use SQLite at KORA_SERVER_DB.
10
- KORA_SERVER_DB=./kora-server.db
10
+ KORA_SERVER_DB=./.kora/kora-server.db
11
11
  DATABASE_URL=
12
12
 
13
13
  # Operational endpoints (/__kora, /__kora/status, /__kora/events, /__kora/metrics, backups)