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

Steven Teyfdfbbcfe532e
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.ts
index f1c92e9fac..b6dc14ca69 100644
--- a/apps/web/lib/auth/options.ts
+++ b/apps/web/lib/auth/options.ts
@@ -358,7 +358,7 @@ export const authOptions: NextAuthOptions = {
if (clickId) {
// send lead event to Dub
await dub.track.lead({
- clickId: clickId,
+ clickId,
eventName: "Sign Up",
customerId: user.id,
customerName: user.name,
@@ -369,6 +369,9 @@ export const authOptions: NextAuthOptions = {
cookies().set("dclid", "", {
expires: new Date(0),
path: "/",
+ domain: VERCEL_DEPLOYMENT
+ ? `.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
+ : undefined,
});
}
}