๐Ÿ“ฆ cloudflare / vinext

๐Ÿ“„ page.tsx ยท 16 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16import Link from "next/link";

export default function PrefetchPage() {
  return (
    <div>
      <h1 id="prefetch-home">Prefetch Test Home</h1>
      <Link href="/nextjs-compat/prefetch-test/target" id="prefetch-link">
        Go to target
      </Link>
      <Link href="/nextjs-compat/prefetch-test/no-prefetch" id="no-prefetch-link" prefetch={false}>
        Go to no-prefetch target
      </Link>
    </div>
  );
}