Commit 980340b
Disable link prefetching site-wide (#5)
Next's client router prefetches every visible link. In output: "export"
mode that means a HEAD request to the page followed by a GET for its
__next._tree.txt segment payload. Those payloads are not deployed (the
.html route scheme forces scripts/fix-html-ext.mjs to move them aside),
so every prefetch was two wasted requests, the second a 404.
Every Fumadocs link renders through the framework Link from RootProvider,
so supply one that forces prefetch={false}. Navigation still works: a
click falls back to the full-page .txt payload as before.
Claude-Session: https://claude.ai/code/session_01Rb8SXvBwzUXaUEQtYHrD9V
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 7178b6e commit 980340b
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
5 | 15 | | |
6 | 16 | | |
7 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
8 | 22 | | |
0 commit comments