mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 06:25:17 +00:00
fix: zod object for assign domain
This commit is contained in:
@@ -131,7 +131,10 @@ export const apiAssignDomain = z
|
|||||||
.object({
|
.object({
|
||||||
host: z.string(),
|
host: z.string(),
|
||||||
certificateType: z.enum(["letsencrypt", "none", "custom"]),
|
certificateType: z.enum(["letsencrypt", "none", "custom"]),
|
||||||
letsEncryptEmail: z.string().email().optional().nullable(),
|
letsEncryptEmail: z
|
||||||
|
.union([z.string().email(), z.literal("")])
|
||||||
|
.optional()
|
||||||
|
.nullable(),
|
||||||
https: z.boolean().optional(),
|
https: z.boolean().optional(),
|
||||||
})
|
})
|
||||||
.required()
|
.required()
|
||||||
|
|||||||
Reference in New Issue
Block a user