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.

Update process-link.ts

Steven Tey86360f1247c8
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index eae223f4bd..38d0b7096c 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -202,7 +202,7 @@ export async function processLink<T extends Record<string, any>>({
// coerce type with ! cause we already checked if it exists
const { allowedHostnames } = DUB_DOMAINS.find((d) => d.slug === domain)!;
- if (allowedHostnames?.length && (ios || android || geo || testVariants)) {
+ if (ios || android || geo || testVariants) {
return {
link: payload,
error: `You cannot use geo targeting, device targeting, or A/B testing on ${domain} links.`,