The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update links.ts
Steven Tey78e336a5b9d6
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex 8a99cc5525..ff4fdcacb1 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -80,6 +80,12 @@ export const createLinkBodySchema = z.object({.describe("The short link slug. If not provided, a random 7-character slug will be generated.",),+ prefix: z+ .string()+ .optional()+ .describe(+ "The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.",+ ),url: z.string().url().describe("The destination URL of the short link."),archived: z.boolean()