chore: Deactivate automatic link prefetching for /blog links (#7751)
* disable prefetch on the `Tips` cards
This commit is contained in:
@@ -147,7 +147,10 @@ export function Card({
|
||||
onClick={actionButton?.onClick}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="text-xs font-medium">
|
||||
className="text-xs font-medium"
|
||||
// NextJS thinks this is an internal link and tries to prefetch it (also on hover), which fails
|
||||
// TODO: Extract this into a constant to handle /docs & /developer as well
|
||||
prefetch={!learnMore.href.startsWith("https://cal.com/blog")}>
|
||||
{learnMore.text}
|
||||
</Link>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user