The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
simplify cookie delete
Steven Tey1a5762933124
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.tsindex b6dc14ca69..fc239bdf37 100644--- a/apps/web/lib/auth/options.ts+++ b/apps/web/lib/auth/options.ts@@ -366,13 +366,7 @@ export const authOptions: NextAuthOptions = {customerAvatar: user.image,});// delete the clickId cookie- cookies().set("dclid", "", {- expires: new Date(0),- path: "/",- domain: VERCEL_DEPLOYMENT- ? `.${process.env.NEXT_PUBLIC_APP_DOMAIN}`- : undefined,- });+ cookies().delete("dclid");}}// lazily backup user avatar to R2diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prismaindex 1db91e8075..ea4c55f08f 100644--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@ -222,7 +222,7 @@ model Link {trackConversion Boolean @default(false) // whether to track conversions or not- proxy Boolean @default(false) // Proxy to use custom OG tags (stored on redis) – if false, will use OG tags from target url+ proxy Boolean @default(false) // Proxy to use custom OG tags (stored on redis) – if false, will use OG tags from target urltitle String? // OG title for the link (e.g. Dub.co - Open-Source Link Management Infrastructure)description String? @db.VarChar(280) // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)image String? @db.LongText // OG image for the link (e.g. https://d.to/og)@@ -268,8 +268,6 @@ model Link {// Comments on the particular shortlinkcomments String? @db.LongText- // TODO: might wanna add indices for utm_source, utm_medium, utm_campaign-@@unique([domain, key])@@unique([projectId, externalId])@@index(projectId)