Skip to content

Commit e0827da

Browse files
committed
fix: try fix windows build failed
1 parent 83ec2b9 commit e0827da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

web/react-router.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export default {
2121
}
2222

2323
for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) {
24-
const slugs = getSlugs(entry);
24+
const normalizedEntry = entry.replaceAll("\\", "/");
25+
const slugs = getSlugs(normalizedEntry);
2526
paths.push(getUrl(slugs), `/llms.mdx/docs/${[...slugs, "content.md"].join("/")}`);
2627
}
2728

0 commit comments

Comments
 (0)