The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
hover to click on URL
Steven Teye468ee2fad0d
diff --git a/app/ui/home/nav.tsx b/app/ui/home/nav.tsxindex 8f9b72ed24..e6a30643ee 100644--- a/app/ui/home/nav.tsx+++ b/app/ui/home/nav.tsx@@ -52,7 +52,7 @@ export default function Nav() {})}><div className="flex h-14 items-center justify-between">- <div className="flex items-center space-x-3">+ <div className="flex items-center space-x-4"><Linkhref={domain === "dub.sh" ? "/" : `https://dub.sh`}{...(domain !== "dub.sh" && {diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsxindex 67c49f1117..527fef55fe 100644--- a/components/app/links/link-card.tsx+++ b/components/app/links/link-card.tsx@@ -261,9 +261,17 @@ export default function LinkCard({ props }: { props: LinkProps }) {{timeAgo(createdAt)}</p><p>•</p>- <p className="max-w-[180px] truncate text-sm font-medium text-gray-700 sm:max-w-[300px] md:max-w-[360px] xl:max-w-[500px]">+ <a+ onClick={(e) => {+ e.stopPropagation(); // to avoid selecting the link card+ }}+ href={url}+ target="_blank"+ rel="noopener noreferrer"+ className="max-w-[180px] truncate text-sm font-medium text-gray-700 underline-offset-2 hover:underline sm:max-w-[300px] md:max-w-[360px] xl:max-w-[500px]"+ >{url}- </p>+ </a></div></div></div>diff --git a/lib/planetscale.ts b/lib/planetscale.tsindex 478c43893c..da8df993ac 100644--- a/lib/planetscale.ts+++ b/lib/planetscale.ts@@ -14,6 +14,7 @@ export const cachedConn = process.env.DATABASE_URL// set next.revalidatereturn fetch(url, {...init,+ cache: undefined,next: {revalidate: 900,},