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.

edited proxy endpoint

Steven Teyca4d293050ab
diff --git a/lib/middleware/link.ts b/lib/middleware/link.ts
index 0cd6500d43..15931a1708 100644
--- a/lib/middleware/link.ts
+++ b/lib/middleware/link.ts
@@ -44,9 +44,7 @@ export default async function LinkMiddleware(
ev.waitUntil(recordClick(hostname, req, key)); // increment click count
if (image && description && isBot) {
- res = NextResponse.rewrite(
- `https://preview.dub.sh/proxy/${hostname}/${key}`
- );
+ res = NextResponse.rewrite(`https://dub.sh/proxy/${hostname}/${key}`);
} else {
res = NextResponse.redirect(target);
}