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}
|
||||
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>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue