Commit 20c0811
Fix: Add defensive guards to middleware for prerender safety
Use optional chaining and try-catch to safely handle cases where starlightRoute is not available during prerender.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 5e71b91 commit 20c0811
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
0 commit comments