From daf5fcf80272647390358d7a385e80b89ae6fd48 Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" <2808553+mikepsinn@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:02:10 -0600 Subject: [PATCH] Update config/domains.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- config/domains.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/domains.ts b/config/domains.ts index 0e585661..6913add5 100644 --- a/config/domains.ts +++ b/config/domains.ts @@ -1,12 +1,12 @@ import { z } from "zod" export const DomainConfig = z.object({ - name: z.string(), - description: z.string(), + name: z.string().min(1).max(50), + description: z.string().min(10).max(200), author: z.string().optional(), - keywords: z.string().optional(), - defaultHomepage: z.string(), - afterLoginPath: z.string(), + keywords: z.array(z.string()).optional(), + defaultHomepage: z.string().startsWith("/"), + afterLoginPath: z.string().startsWith("/"), ogImage: z.string().url().optional(), })