seed data

This commit is contained in:
2025-12-30 00:15:35 +01:00
parent 7a853d4e43
commit ccaa39c39c
22 changed files with 1342 additions and 173 deletions

View File

@@ -57,6 +57,21 @@ export function getEnableBootstrap(): boolean {
return isTruthyEnv(raw);
}
/**
* Force reseeding of racing data in development mode.
*
* `GRIDPILOT_API_FORCE_RESEED` uses "truthy" parsing:
* - false when unset / "0" / "false"
* - true otherwise
*
* Only works in non-production environments.
*/
export function getForceReseed(): boolean {
const raw = process.env.GRIDPILOT_API_FORCE_RESEED;
if (raw === undefined) return false;
return isTruthyEnv(raw);
}
/**
* When set, the API will generate `openapi.json` and optionally reduce logging noise.
*