diff --git a/src/node/markdownToVue.ts b/src/node/markdownToVue.ts index 458837c0318a..21ea491b9897 100644 --- a/src/node/markdownToVue.ts +++ b/src/node/markdownToVue.ts @@ -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!)) ]) || [] )