Skip to content

Commit c8e85d5

Browse files
committed
use .env.development as default...
remove requirement to configure own .local env file
1 parent a201720 commit c8e85d5

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

packages/express/.env.development

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
COUCHDB_SERVER=fillthisin .env.development.local //localhost:5984/
2-
COUCHDB_PROTOCOL=fillthisin .env.develoment.local //http
3-
COUCHDB_ADMIN=admin .env.development.local //your couchdb admin username
4-
COUCHDB_PASSWORD=password .env.development.local //your couchdb admin pw
1+
# This config aligns with the `dev` script at the project root,
2+
# and assumes that the CouchDB backend is available
3+
4+
COUCHDB_SERVER=localhost:5984
5+
COUCHDB_PROTOCOL=http
6+
COUCHDB_ADMIN=admin
7+
COUCHDB_PASSWORD=password
58

69
VERSION=localdev

packages/express/src/utils/env.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import dotenv from 'dotenv';
22
import process from 'process';
3+
import fs from 'fs';
34

45
dotenv.config({
5-
path: process.argv && process.argv.length == 3 ? process.argv[2] : '.env.development.local',
6+
path:
7+
process.argv && process.argv.length == 3
8+
? process.argv[2]
9+
: '.env.development',
610
});
711

812
type Env = {

0 commit comments

Comments
 (0)