From 7ee811b7e6c35a7f1b1f7157e8b8375d565925db Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 29 Jul 2026 18:11:34 +0530 Subject: [PATCH] refactor(build): reuse pageData.relativePath for the HMR payload path Equivalent to re-applying the rewrite map manually, but hardened against drive-letter case mismatches on Windows. Co-Authored-By: Claude Fable 5 --- src/node/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 1c31c219..cdcd00c7 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -242,7 +242,7 @@ export async function createVitePressPlugin( ) { logDeadLinks(deadLinks, siteConfig.logger, true) const payload: PageDataPayload = { - path: `/${siteConfig.rewrites.map[relativePath] || relativePath}`, + path: `/${pageData.relativePath}`, pageData } // notify the client to update page data