From 036887d8069d1191843189e10d6827ebcf9a6998 Mon Sep 17 00:00:00 2001 From: ReaJason Date: Sun, 26 Apr 2026 14:10:57 +0800 Subject: [PATCH] fix: try fix windows build failed --- web/react-router.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/react-router.config.ts b/web/react-router.config.ts index f353c25d..6f06aae3 100644 --- a/web/react-router.config.ts +++ b/web/react-router.config.ts @@ -21,7 +21,8 @@ export default { } for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) { - const slugs = getSlugs(entry); + const normalizedEntry = entry.replaceAll("\\", "/"); + const slugs = getSlugs(normalizedEntry); paths.push(getUrl(slugs), `/llms.mdx/docs/${[...slugs, "content.md"].join("/")}`); }