Skip to content

Commit 9cc2fc2

Browse files
committed
Allow localhost in additionalPartnerLinkSchema
1 parent 96b0f7b commit 9cc2fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/lib/zod/schemas/groups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const GROUPS_MAX_PAGE_SIZE = 100;
3131
export const additionalPartnerLinkSchema = z.object({
3232
domain: z
3333
.string()
34-
.refine((v) => isValidDomainFormat(v), {
34+
.refine((v) => isValidDomainFormat(v) || v === "localhost", {
3535
message: "Please enter a valid domain (eg: acme.com).",
3636
})
3737
.transform((v) => v.toLowerCase()),

0 commit comments

Comments
 (0)