Commit 5e71b91
Fix: Wrap starlightRoute access in try-catch for prerender safety
Handle cases where starlightRoute is not available during prerender of non-Starlight pages (e.g., 404 page).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 298c069 commit 5e71b91
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
0 commit comments