Skip to content

Commit ac54a6e

Browse files
authored
fix: fix path rewriting in history mode support (#96)
1 parent 841d4ef commit ac54a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/htmlPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function createRewire(
340340
const isApiUrl = proxyUrlKeys.some((item) =>
341341
pathname.startsWith(path.resolve(baseUrl, item)),
342342
)
343-
return isApiUrl ? excludeBaseUrl : template
343+
return isApiUrl ? parsedUrl.path : template
344344
},
345345
}
346346
}

0 commit comments

Comments
 (0)