Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

relax url type checks and handle it in the main thread

Steven Tey03556208633e
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 5d1bbab5a5..927af0426e 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -110,7 +110,7 @@ export const createLinkBodySchema = z.object({
.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."),
+ url: z.string().describe("The destination URL of the short link."),
archived: z
.boolean()
.optional()