Skip to content

Commit 2cc937b

Browse files
authored
chore: Deactivate automatic link prefetching for /blog links (#7751)
* disable prefetch on the `Tips` cards
1 parent a575190 commit 2cc937b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ui/components/card/Card.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export function Card({
147147
onClick={actionButton?.onClick}
148148
target="_blank"
149149
rel="noreferrer"
150-
className="text-xs font-medium">
150+
className="text-xs font-medium"
151+
// NextJS thinks this is an internal link and tries to prefetch it (also on hover), which fails
152+
// TODO: Extract this into a constant to handle /docs & /developer as well
153+
prefetch={!learnMore.href.startsWith("https://cal.com/blog")}>
151154
{learnMore.text}
152155
</Link>
153156
)}

0 commit comments

Comments
 (0)