From eedc09dbddb2eb70ffe16aee329435d92cc020e0 Mon Sep 17 00:00:00 2001 From: Ollie Hyde Date: Thu, 19 Mar 2026 10:14:11 +0000 Subject: [PATCH 1/3] Add hints for when to use the example development .env files --- .env.development.local | 1 + .env.development.test | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.development.local b/.env.development.local index 08d2bbb8..c4a60625 100644 --- a/.env.development.local +++ b/.env.development.local @@ -1,3 +1,4 @@ +# For local development not using docker NODE_ENV=development VUE_APP_API_URL=http://localhost:8082 VUE_APP_API_MOCK=0 diff --git a/.env.development.test b/.env.development.test index 0b641226..c53d513f 100644 --- a/.env.development.test +++ b/.env.development.test @@ -1,3 +1,4 @@ +# For local development using docker NODE_ENV=development VUE_APP_API_URL=http://host.docker.internal:8082 VUE_APP_API_MOCK=0 From 4f9701f62ee812f1b1df1a5dd1f313293bf0e80a Mon Sep 17 00:00:00 2001 From: Ollie Hyde Date: Tue, 7 Apr 2026 11:22:58 +0100 Subject: [PATCH 2/3] 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 --- .env.development.local | 10 +++++----- .env.development.mock | 5 +++-- .env.development.prod | 3 ++- .env.development.staging | 8 ++++++++ .env.development.test | 2 +- 5 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 .env.development.staging diff --git a/.env.development.local b/.env.development.local index c4a60625..6558370b 100644 --- a/.env.development.local +++ b/.env.development.local @@ -1,8 +1,8 @@ -# For local development not using docker +# For local development using a Platform API that can be accessed via the host machine's localhost NODE_ENV=development -VUE_APP_API_URL=http://localhost:8082 +VUE_APP_API_URL=http://host.docker.internal:8082 VUE_APP_API_MOCK=0 -VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" # todo replace with test key +VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" VUE_APP_BUILD_FOR_DOCKER_IMAGE=0 -VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.localhost -VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.localhost" +VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.dev +VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.dev" diff --git a/.env.development.mock b/.env.development.mock index a7f2dd73..f0fdb8c0 100644 --- a/.env.development.mock +++ b/.env.development.mock @@ -1,7 +1,8 @@ +# For local development using a mock Platform API NODE_ENV=development VUE_APP_API_URL= VUE_APP_API_MOCK=1 VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" VUE_APP_BUILD_FOR_DOCKER_IMAGE=0 -VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.localhost -VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.localhost" +VUE_APP_CNAME_RECORD=sites-1.dyna.wbaas.dev +VUE_APP_SUBDOMAIN_SUFFIX=".wbaas.dev" diff --git a/.env.development.prod b/.env.development.prod index c67741d9..7b2766c4 100644 --- a/.env.development.prod +++ b/.env.development.prod @@ -1,7 +1,8 @@ +# For local development against the production Platform API NODE_ENV=development VUE_APP_API_URL="https://api.wikibase.cloud" VUE_APP_API_MOCK=0 VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" VUE_APP_BUILD_FOR_DOCKER_IMAGE=0 -VUE_APP_CNAME_RECORD=sites-1.dyna.wbstack.com +VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.com VUE_APP_SUBDOMAIN_SUFFIX=".wikibase.cloud" diff --git a/.env.development.staging b/.env.development.staging new file mode 100644 index 00000000..0aa00ff6 --- /dev/null +++ b/.env.development.staging @@ -0,0 +1,8 @@ +# For local development against the staging Platform API +NODE_ENV=development +VUE_APP_API_URL="https://api.wikibase.dev" +VUE_APP_API_MOCK=0 +VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" +VUE_APP_BUILD_FOR_DOCKER_IMAGE=0 +VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.dev +VUE_APP_SUBDOMAIN_SUFFIX=".wikibase.dev" diff --git a/.env.development.test b/.env.development.test index c53d513f..7246f560 100644 --- a/.env.development.test +++ b/.env.development.test @@ -1,4 +1,4 @@ -# For local development using docker +# For running GitHub Actions tests using docker NODE_ENV=development VUE_APP_API_URL=http://host.docker.internal:8082 VUE_APP_API_MOCK=0 From 7c37375779257b4a69f85b1ea8c57378ac3fe69c Mon Sep 17 00:00:00 2001 From: Ollie <43674967+outdooracorn@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:08:20 +0100 Subject: [PATCH 3/3] Use correct VUE_APP_CNAME_RECORD value in .env.development.prod Co-authored-by: Thomas Arrow --- .env.development.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development.prod b/.env.development.prod index 7b2766c4..b85eeadf 100644 --- a/.env.development.prod +++ b/.env.development.prod @@ -4,5 +4,5 @@ VUE_APP_API_URL="https://api.wikibase.cloud" VUE_APP_API_MOCK=0 VUE_APP_RECAPTCHA_SITE_KEY="6LeHzbMUAAAAABjNp0vILaWr5ZeYHmteF7rGuZNV" VUE_APP_BUILD_FOR_DOCKER_IMAGE=0 -VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.com +VUE_APP_CNAME_RECORD=sites-1.dyna.wikibase.cloud VUE_APP_SUBDOMAIN_SUFFIX=".wikibase.cloud"