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 upstash.ts

Steven Tey042a2f67baff
diff --git a/apps/web/lib/upstash.ts b/apps/web/lib/upstash.ts
index b48d825411..f634d8688e 100644
--- a/apps/web/lib/upstash.ts
+++ b/apps/web/lib/upstash.ts
@@ -103,9 +103,9 @@ export async function formatRedisDomain(
return {
id,
- ...(url && { url }),
- ...(type === "rewrite" &&
- url && {
+ ...(url && { url }), // on free plans you cannot set a root domain redirect, hence URL is undefined
+ ...(url &&
+ type === "rewrite" && {
rewrite: true,
iframeable: await isIframeable({ url, requestDomain: slug }),
}),