fix(env): 要求配置 SoH 预测服务

This commit is contained in:
2026-05-11 23:38:38 +08:00
parent a131bb845b
commit 8a3d5fd947
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ export const env = createEnv({
LOG_DB: z.stringbool().default(false),
LOG_FORMAT: z.enum(['pretty', 'json']).optional(),
LOG_LEVEL: z.enum(['trace', 'debug', 'info', 'warning', 'error', 'fatal']).default('info'),
SOH_PREDICTION_API_BASE_URL: z.url({ protocol: /^https?$/ }).optional(),
SOH_PREDICTION_API_BASE_URL: z.url({ protocol: /^https?$/ }),
SOH_PREDICTION_CACHE_TTL_SECONDS: z.coerce.number().int().positive().default(86_400),
SOH_PREDICTION_TIMEOUT_MS: z.coerce.number().int().positive().default(10_000),
},