fix: try fix windows build failed

This commit is contained in:
ReaJason
2026-04-26 21:33:15 +08:00
parent 11794f9465
commit 036887d806
+2 -1
View File
@@ -21,7 +21,8 @@ export default {
} }
for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) { 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("/")}`); paths.push(getUrl(slugs), `/llms.mdx/docs/${[...slugs, "content.md"].join("/")}`);
} }