Wrap next/link in a shared Link component that ships prefetch=false by default, so no route is ever prefetched (viewport or hover) anymore, and drop the DNS prefetch hint. Removes hidden background requests that were the source of intermittent issues.
7 lines
203 B
TypeScript
7 lines
203 B
TypeScript
import NextLink from "next/link";
|
|
import type { ComponentProps } from "react";
|
|
|
|
export default function Link(props: ComponentProps<typeof NextLink>) {
|
|
return <NextLink prefetch={false} {...props} />;
|
|
}
|