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.

Merge branch 'main' into pr/54

Steven Tey4dbd2bad887f
diff --cc lib/middleware/link.ts
index f338eee74f,5dad425e7a..9685f9d27d
--- a/lib/middleware/link.ts
+++ b/lib/middleware/link.ts
@@@ -5,10 -5,10 +5,10 @@@ import { LinkProps } from "../types"
export default async function LinkMiddleware(
req: NextRequest,
- ev: NextFetchEvent
+ ev: NextFetchEvent,
) {
const url = req.nextUrl.clone();
- const { hostname, key } = parse(req);
+ const { hostname, key, query } = parse(req);
if (!hostname || !key) {
return NextResponse.next();
diff --cc lib/upstash.ts
index ee71c3d0cd,60e14299e6..d29a46f4e5
--- a/lib/upstash.ts
+++ b/lib/upstash.ts
@@@ -98,9 -98,9 +98,9 @@@ export async function recordClick
geo: process.env.VERCEL === "1" ? req.geo : LOCALHOST_GEO_DATA,
ua: userAgent(req),
referer: req.headers.get("referer"),
- timestamp: Date.now(),
+ timestamp: Date.now()
},
- }
+ },
);
}