Stop the flow store leaking git zombies, honour VITE_API_URL from .env

`FlowStore._git` now passes `-c gc.auto=0`, so `git commit` no longer forks a
background `gc --auto` that reparents onto PID 1 and stays there unreaped. With
auto-gc off nothing packs on its own, so `_commit` runs a foreground `git gc`
every 500 commits — the trigger a long-lived seeding session actually reaches.

`docker/compose.yml` takes the frontend's `VITE_API_URL` build arg from the
environment, keeping `https://api.${DOMAIN}` only as the fallback. `setup.sh`
already derives the scheme from `ENVIRONMENT`, so an `up --build` that does not
layer `compose.local.yml` stops shipping a bundle that calls `https://api.localhost`.
This commit is contained in:
2026-08-23 16:49:46 +02:00
parent a32f0e61ce
commit 328749c858
5 changed files with 46 additions and 24 deletions
+5
View File
@@ -11,6 +11,11 @@ FRONTEND_HOST=http://localhost:5173
# local, staging, production
ENVIRONMENT=local
# Baked into the SPA at build time: the address the interface calls. The
# workspace root's scripts/setup.sh derives it from DOMAIN and ENVIRONMENT —
# plain http for a local target, where nothing terminates TLS.
VITE_API_URL=http://api.localhost
PROJECT_NAME="Fluksio"
STACK_NAME=fluksio-app