feat: improved slug with a default generator for ui and server

This commit is contained in:
Akhil Mohan
2024-03-28 19:55:12 +05:30
parent 5f84de039f
commit 8f85f292db
5 changed files with 102 additions and 25 deletions
@@ -31,6 +31,7 @@ export const formSchema = z.object({
slug: z
.string()
.trim()
.toLowerCase()
.refine((val) => val !== "custom", { message: "Cannot use custom as its a keyword" }),
permissions: z
.object({