From 74b88f74dacc4060c03254087966e5c1204158fe Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Wed, 6 May 2026 19:21:00 +0200 Subject: [PATCH] fix(turbo+docs): declare USE_DEV_SEED in turbo globalEnv; correct DI explainer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ESLint flagged that USE_DEV_SEED was read in apps/web-next without being declared in root turbo.json globalEnv — added it. DI explainer's conditions table previously listed 'Production server (NODE_ENV=production)' as a scenario, but bindAll() only checks USE_DEV_SEED — NODE_ENV is not read anywhere in source. Fixed the table and the prod-mode flag string to match what the code actually does. --- docs/architecture/di-explainer.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/architecture/di-explainer.html b/docs/architecture/di-explainer.html index ceef150..8c602fe 100644 --- a/docs/architecture/di-explainer.html +++ b/docs/architecture/di-explainer.html @@ -1032,17 +1032,12 @@ footer .colophon {
default · empty mock
-
Dev server with USE_DEV_SEED=true
+
Server (any env) with USE_DEV_SEED=true
bindAll() → bindAllDevSeed()
dev seed · populated mock
-
Dev server without env flag (Payload booted)
-
bindAll() → bindAllProduction(config)
-
production · real Payload
-
-
-
Production server (NODE_ENV=production)
+
Server (any env) with USE_DEV_SEED unset / not "true"
bindAll() → bindAllProduction(config)
production · real Payload
@@ -1196,7 +1191,7 @@ const MODES = { ], }, prod: { - flag: 'NODE_ENV=production OR no USE_DEV_SEED · bindAllProduction(config) ran', + flag: 'USE_DEV_SEED unset or not "true" · bindAllProduction(config) ran', scenarioTag: 'when this happens', title: 'Production binder ran at app boot', narrative: [