Skip to content

Commit daf5fcf

Browse files
Update config/domains.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 3f9b4d6 commit daf5fcf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/domains.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { z } from "zod"
22

33
export const DomainConfig = z.object({
4-
name: z.string(),
5-
description: z.string(),
4+
name: z.string().min(1).max(50),
5+
description: z.string().min(10).max(200),
66
author: z.string().optional(),
7-
keywords: z.string().optional(),
8-
defaultHomepage: z.string(),
9-
afterLoginPath: z.string(),
7+
keywords: z.array(z.string()).optional(),
8+
defaultHomepage: z.string().startsWith("/"),
9+
afterLoginPath: z.string().startsWith("/"),
1010
ogImage: z.string().url().optional(),
1111
})
1212

0 commit comments

Comments
 (0)