chore: fix router base handling with dev-middleware (closes #8440)

[release]
This commit is contained in:
Pooya Parsa 2020-12-10 11:40:20 +01:00
parent 568f9fddd9
commit 07a6bbe2b0

View File

@ -207,7 +207,10 @@ export class WebpackBundler {
const name = isModernRequest(req, this.buildContext.options.modern) ? 'modern' : 'client'
if (this.devMiddleware && this.devMiddleware[name]) {
const { url } = req
req.url = req.originalUrl || req.url
await this.devMiddleware[name](req, res)
req.url = url
}
if (this.hotMiddleware && this.hotMiddleware[name]) {