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.

made a typo

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