feat(mysql): 接入只读电池数据源

This commit is contained in:
2026-05-11 20:51:24 +08:00
parent 8b6339f34b
commit ebe0970df1
3 changed files with 79 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { z } from 'zod'
export const env = createEnv({
server: {
DATABASE_URL: z.url({ protocol: /^postgres(ql)?$/ }),
DATABASE_URL: z.url({ protocol: /^mysql$/ }),
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'),