Skip to content

Commit

Permalink
fix: fix path rewriting in history mode support (vbenjs#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ay4toh5i authored and gao.boyu committed Feb 19, 2024
1 parent 5303c28 commit bdc69ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/htmlPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function createRewire(
const isApiUrl = proxyUrlKeys.some((item) =>
pathname.startsWith(path.resolve(baseUrl, item)),
)
return isApiUrl ? excludeBaseUrl : template
return isApiUrl ? parsedUrl.path : template
},
}
}

0 comments on commit bdc69ec

Please sign in to comment.