chore: Deactivate automatic link prefetching for `/blog` links (#7751)
* disable prefetch on the `Tips` cardspull/7324/head
parent
a57519040e
commit
2cc937ba87
|
@ -147,7 +147,10 @@ export function Card({
|
||||||
onClick={actionButton?.onClick}
|
onClick={actionButton?.onClick}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
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}
|
{learnMore.text}
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue