Skip to content

Commit

Permalink
fix: broken rewrites on windows (#4268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heptazhou authored Oct 12, 2024
1 parent 3e8fc40 commit b46d6d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/markdownToVue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ export async function createMarkdownToVueRenderFn(
const dynamicRoutes = new Map(
siteConfig?.dynamicRoutes?.routes.map((r) => [
r.fullPath,
path.join(srcDir, r.route)
slash(path.join(srcDir, r.route))
]) || []
)

const rewrites = new Map(
Object.entries(siteConfig?.rewrites.map || {}).map(([key, value]) => [
path.join(srcDir, key),
path.join(srcDir, value!)
slash(path.join(srcDir, key)),
slash(path.join(srcDir, value!))
]) || []
)

Expand Down

0 comments on commit b46d6d3

Please sign in to comment.