fix(turbo+docs): declare USE_DEV_SEED in turbo globalEnv; correct DI explainer
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.
This commit is contained in:
@@ -1032,17 +1032,12 @@ footer .colophon {
|
|||||||
<div class="outcome">default · empty mock</div>
|
<div class="outcome">default · empty mock</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="conditions-row">
|
<div class="conditions-row">
|
||||||
<div class="scenario">Dev server with USE_DEV_SEED=true</div>
|
<div class="scenario">Server (any env) with USE_DEV_SEED=true</div>
|
||||||
<div class="trigger">bindAll() → bindAllDevSeed()</div>
|
<div class="trigger">bindAll() → bindAllDevSeed()</div>
|
||||||
<div class="outcome">dev seed · populated mock</div>
|
<div class="outcome">dev seed · populated mock</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="conditions-row">
|
<div class="conditions-row">
|
||||||
<div class="scenario">Dev server without env flag (Payload booted)</div>
|
<div class="scenario">Server (any env) with USE_DEV_SEED unset / not "true"</div>
|
||||||
<div class="trigger">bindAll() → bindAllProduction(config)</div>
|
|
||||||
<div class="outcome">production · real Payload</div>
|
|
||||||
</div>
|
|
||||||
<div class="conditions-row">
|
|
||||||
<div class="scenario">Production server (NODE_ENV=production)</div>
|
|
||||||
<div class="trigger">bindAll() → bindAllProduction(config)</div>
|
<div class="trigger">bindAll() → bindAllProduction(config)</div>
|
||||||
<div class="outcome">production · real Payload</div>
|
<div class="outcome">production · real Payload</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1196,7 +1191,7 @@ const MODES = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
prod: {
|
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',
|
scenarioTag: 'when this happens',
|
||||||
title: 'Production binder ran at app boot',
|
title: 'Production binder ran at app boot',
|
||||||
narrative: [
|
narrative: [
|
||||||
|
|||||||
Reference in New Issue
Block a user