mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
ci: test build on windows
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { glob } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { env } from "node:process";
|
||||
import type { Config } from "@react-router/dev/config";
|
||||
import { createGetUrl, getSlugs } from "fumadocs-core/source";
|
||||
@@ -14,8 +15,10 @@ export default {
|
||||
for (const path of getStaticPaths()) {
|
||||
if (!excluded.includes(path)) paths.push(path);
|
||||
}
|
||||
for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) {
|
||||
paths.push(getUrl(getSlugs(entry)));
|
||||
const docsDir = path.resolve(process.cwd(), "content/docs");
|
||||
for await (const entry of glob("**/*.mdx", { cwd: docsDir })) {
|
||||
const normalizedEntry = entry.replace(/\\/g, "/");
|
||||
paths.push(getUrl(getSlugs(normalizedEntry)));
|
||||
}
|
||||
return paths;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user