mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge branch 'canary' into 216-domains-for-services-created-via-template
This commit is contained in:
@@ -2,9 +2,7 @@ import { z } from "zod";
|
|||||||
|
|
||||||
export const domain = z
|
export const domain = z
|
||||||
.object({
|
.object({
|
||||||
host: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9\.-]*\.[a-zA-Z]{2,}$/, {
|
host: z.string().min(1, { message: "Add a hostname" }),
|
||||||
message: "Invalid hostname",
|
|
||||||
}),
|
|
||||||
path: z.string().min(1).optional(),
|
path: z.string().min(1).optional(),
|
||||||
port: z
|
port: z
|
||||||
.number()
|
.number()
|
||||||
|
|||||||
Reference in New Issue
Block a user