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.

fix: relax link url validation in programResourcesSchema for legacy data

Kiran Kd7d811b3d5f5
diff --git a/apps/web/lib/zod/schemas/program-resources.ts b/apps/web/lib/zod/schemas/program-resources.ts
index d901914088..46b70b2da6 100644
--- a/apps/web/lib/zod/schemas/program-resources.ts
+++ b/apps/web/lib/zod/schemas/program-resources.ts
@@ -25,7 +25,7 @@ export const programResourceColorSchema = z.object({
export const programResourceLinkSchema = z.object({
id: z.string(),
name: z.string(),
- url: z.httpUrl(),
+ url: z.url(),
});
export const programResourcesSchema = z.object({