We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9b4d6 commit daf5fcfCopy full SHA for daf5fcf
config/domains.ts
@@ -1,12 +1,12 @@
1
import { z } from "zod"
2
3
export const DomainConfig = z.object({
4
- name: z.string(),
5
- description: z.string(),
+ name: z.string().min(1).max(50),
+ description: z.string().min(10).max(200),
6
author: z.string().optional(),
7
- keywords: z.string().optional(),
8
- defaultHomepage: z.string(),
9
- afterLoginPath: z.string(),
+ keywords: z.array(z.string()).optional(),
+ defaultHomepage: z.string().startsWith("/"),
+ afterLoginPath: z.string().startsWith("/"),
10
ogImage: z.string().url().optional(),
11
})
12
0 commit comments