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 setRootDomain edge case

Steven Tey5e779908a393
diff --git a/apps/web/lib/api/domains.ts b/apps/web/lib/api/domains.ts
index 96352cc194..600e8e7016 100644
--- a/apps/web/lib/api/domains.ts
+++ b/apps/web/lib/api/domains.ts
@@ -183,7 +183,7 @@ export async function setRootDomain({
rewrite: true,
iframeable: await isIframeable({
url,
- requestDomain: domain,
+ requestDomain: newDomain || domain,
}),
}),
projectId,