refactor: remove hostname validation

This commit is contained in:
Mauricio Siu 2024-08-17 16:11:03 -06:00
parent 65527bc39a
commit b7dad5e1d9

View File

@ -26,9 +26,7 @@ export const domain = z
export const domainCompose = z
.object({
host: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9\.-]*\.[a-zA-Z]{2,}$/, {
message: "Invalid hostname",
}),
host: z.string().min(1, { message: "Host is required" }),
path: z.string().min(1).optional(),
port: z
.number()