Repository navigation
Commit 0123ec4
committed
fix(build): exclude errors content on Windows
getStaticPaths sliced platform-native paths, so on Windows the errors/ prefix check saw errors\\*.md and never excluded it; getSegments then normalized the path to /errors/*, colliding with pages/errors.
Normalize content paths to forward slashes when collected and drop the redundant normalization in getSegments.
Verified with a full yarn build (exit 0).1 parent 5e3a0f3 commit 0123ec4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments