Commit 73016d0
committed
fix: use plain <a> for static file links to avoid RSC 404
Paths with file extensions (e.g. /llms.txt) are static files in
public/, not Next.js routes. next/link prefetches them as RSC flight
requests (?_rsc=) which 404. Detect file extensions in Link and
render a plain <a> tag instead.1 parent c0c2610 commit 73016d0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments