seed data
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user