The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into make-r2-dynamic
Steven Teyecb3d0757dca
diff --cc apps/web/lib/zod/schemas/misc.tsindex 65521c96d9,d6b6a6479a..13bd024e73--- a/apps/web/lib/zod/schemas/misc.ts+++ b/apps/web/lib/zod/schemas/misc.ts@@@ -1,6 -1,6 +1,7 @@@import { plans, roles } from "@/lib/types";import z from "@/lib/zod";+import { R2_URL } from "@dub/utils";+ import { fileTypeFromBuffer } from "file-type";export const RECURRING_MAX_DURATIONS = [0, 3, 6, 12, 18, 24];@@@ -77,7 -88,9 +89,9 @@@ export const base64ImageSchema =).transform((v) => v || null);-// Base64 encoded image or dubassets.com URL+// Base64 encoded image or R2_URL+ // This schema contains an async refinement check for base64 image validation,+ // which requires using parseAsync() instead of parse() when validatingexport const uploadedImageSchema = z.union([base64ImageSchema,