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 committed Oct 29, 2023
1 parent 841d4ef commit ac54a6e
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 ac54a6e

Please sign in to comment.