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 build

Kiran K6cf29c93de4c
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index d563965ccd..a0e613d4a4 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -27,7 +27,6 @@ export const getDomainQuerySchema = z.object({
export const MIN_TEST_PERCENTAGE = 10;
export const MAX_TEST_COUNT = 4;
-export const DESTINATION_URL_MAX_LENGTH = 32000;
export const ABTestVariantsSchema = z
.array(
diff --git a/apps/web/lib/zod/schemas/utils.ts b/apps/web/lib/zod/schemas/utils.ts
index c1641acff5..4fbe3582bf 100644
--- a/apps/web/lib/zod/schemas/utils.ts
+++ b/apps/web/lib/zod/schemas/utils.ts
@@ -1,6 +1,8 @@
import z from "@/lib/zod";
import { getUrlFromString, isValidUrl, parseDateTime } from "@dub/utils";
-import { DESTINATION_URL_MAX_LENGTH } from "./links";
+
+// This is the default max length for URL validation
+export const DESTINATION_URL_MAX_LENGTH = 32000;
export const parseUrlSchema = z
.string()