Merge pull request #3582 from fnwbr/master

`POST /api/websites/<id>`: Make name and domain optional in the validation schema
This commit is contained in:
Mike Cao authored and GitHub committed 2025-09-23 17:53:40 -07:00
commit 9ee8f301ed
2 files changed
+17 -2

No files matched your search

+2 -2
View File
@@ -31,8 +31,8 @@ export async function POST(
{ params }: { params: Promise<{ websiteId: string }> },
) {
const schema = z.object({
name: z.string(),
domain: z.string(),
name: z.string().optional(),
domain: z.string().optional(),
shareId: z.string().regex(SHARE_ID_REGEX).nullable().optional(),
});