Commit 57cac1c
Fix MDX internal links missing basePath by using Next.js Link component
MDX content links like [text](/docs/...) rendered as plain <a> tags,
which don't get the Next.js basePath prefix, causing 404s on GitHub
Pages. Added MdxLink component that routes internal links through
Next.js Link for automatic basePath handling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c00e4f6 commit 57cac1c
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
42 | 51 | | |
43 | 52 | | |
44 | 53 | | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
0 commit comments