fix: 报错修复

This commit is contained in:
2026-01-03 23:18:33 +08:00
parent d22fdc9618
commit a067d167e9
4 changed files with 4 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ export const createDeploymentSchema = z.object({
branch: z.string().min(1, { message: '分支不能为空' }),
commitHash: z.string().min(1, { message: '提交哈希不能为空' }),
commitMessage: z.string().min(1, { message: '提交信息不能为空' }),
envVars: z.record(z.string()).optional(), // 环境变量 key-value 对象
envVars: z.record(z.string(), z.string()).optional(), // 环境变量 key-value 对象
});
export type ListDeploymentsQuery = z.infer<typeof listDeploymentsQuerySchema>;