From 8abad7260754c65722ac261886b9e31142a20fbf Mon Sep 17 00:00:00 2001 From: Lewis Nixon Date: Wed, 22 Jul 2026 20:19:34 +0100 Subject: [PATCH] Base Dev Container .env on .env.dev instead of .env.example .env.example doesn't set NX_ADD_PLUGINS=false, so pointing Dev Container users at it silently changed their Nx task-inference behavior compared to everyone else's setup. Base on .env.dev like the manual setup does, and just override DATABASE_URL/REDIS_HOST for the containerized services. --- DEVELOPMENT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 965ea5694..7ec29f1c2 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -26,9 +26,9 @@ As an alternative to the manual _Setup_ above, [Visual Studio Code](https://code - [Docker](https://www.docker.com/products/docker-desktop) - [Visual Studio Code](https://code.visualstudio.com) with the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension -- Copy the file `.env.example` to `.env` and populate it with your data (`cp .env.example .env`) +- Copy the file `.env.dev` to `.env` and populate it with your data (`cp .env.dev .env`) -**Info:** Use `.env.example`, not `.env.dev`, as the base for `.env`. Inside the Dev Container, the application and the databases run as separate containers on the same Docker network, so `DATABASE_URL` and `REDIS_HOST` must point to the service names `postgres` and `redis` (as `.env.example` already does), not `localhost`. +**Info:** Use `.env.dev`, not `.env.example`, as the base for `.env`, since it also sets `NX_ADD_PLUGINS=false` to keep _Nx_ behaving the same as in the manual _Setup_ above. Inside the Dev Container, the application and the databases run as separate containers on the same Docker network, so after copying, change `DATABASE_URL` and `REDIS_HOST` to point to the service names `postgres` and `redis` instead of `localhost`. #### Setup