Commit 751aeb5
committed
fix(serve): route /<slug>/ and /<slug> to index.html
Local serve was returning 404 on /socket-packageurl-js/ — the slug-
prefixed root that GH Pages serves the site at and the home link
(<a href='/'>) falls back to when base-path rewrite runs. Only the
bare /, /<slug>/part/<n>, and /<slug>/documents shapes were handled.
Add an explicit match for /<slug> and /<slug>/ → index.html so the
dev server matches production URL shape.1 parent 0d7f2e8 commit 751aeb5
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
813 | 816 | | |
814 | 817 | | |
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
818 | 821 | | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
819 | 825 | | |
820 | 826 | | |
821 | 827 | | |
| |||
0 commit comments