Skip to content

Commit 4f9701f

Browse files
committed
Improve example development .env files
* Add comment to explain how each one is intended to be used * Use a correct value for `VUE_APP_API_URL` env var * Use a more sensible values for `VUE_APP_CNAME_RECORD` and `VUE_APP_SUBDOMAIN_SUFFIX` env vars
1 parent eedc09d commit 4f9701f

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

.env.development.local

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# For local development not using docker
1+
# For local development using a Platform API that can be accessed via the host machine's localhost
22
NODE_ENV=development
3-
VUE_APP_API_URL=http://localhost:8082
3+
VUE_APP_API_URL=http://host.docker.internal:8082
44
VUE_APP_API_MOCK=0
5-
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" # todo replace with test key
5+
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
66
VUE_APP_BUILD_FOR_DOCKER_IMAGE=0
7-
VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.localhost
8-
VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.localhost"
7+
VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.dev
8+
VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.dev"

.env.development.mock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
# For local development using a mock Platform API
12
NODE_ENV=development
23
VUE_APP_API_URL=
34
VUE_APP_API_MOCK=1
45
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
56
VUE_APP_BUILD_FOR_DOCKER_IMAGE=0
6-
VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.localhost
7-
VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.localhost"
7+
VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.dev
8+
VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.dev"

.env.development.prod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
# For local development against the production Platform API
12
NODE_ENV=development
23
VUE_APP_API_URL="https://api.wikibase.cloud"
34
VUE_APP_API_MOCK=0
45
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
56
VUE_APP_BUILD_FOR_DOCKER_IMAGE=0
6-
VUE_APP_CNAME_RECORD=sites-1.dyna.wbstack.com
7+
VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.com
78
VUE_APP_SUBDOMAIN_SUFFIX=".wikibase.cloud"

.env.development.staging

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# For local development against the staging Platform API
2+
NODE_ENV=development
3+
VUE_APP_API_URL="https://api.wikibase.dev"
4+
VUE_APP_API_MOCK=0
5+
VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV"
6+
VUE_APP_BUILD_FOR_DOCKER_IMAGE=0
7+
VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.dev
8+
VUE_APP_SUBDOMAIN_SUFFIX=".wikibase.dev"

.env.development.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# For local development using docker
1+
# For running GitHub Actions tests using docker
22
NODE_ENV=development
33
VUE_APP_API_URL=http://host.docker.internal:8082
44
VUE_APP_API_MOCK=0

0 commit comments

Comments
 (0)