fix http-proxy-middleware
This commit is contained in:
parent
74fe330e4a
commit
4e130375a7
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ Object.keys(proxyTable).forEach(function (context) {
|
||||||
if (typeof options === 'string') {
|
if (typeof options === 'string') {
|
||||||
options = { target: options }
|
options = { target: options }
|
||||||
}
|
}
|
||||||
app.use(proxyMiddleware.createProxyMiddleware(context, options))
|
options.pathFilter = context
|
||||||
|
app.use(proxyMiddleware.createProxyMiddleware(options))
|
||||||
})
|
})
|
||||||
|
|
||||||
// handle fallback for HTML5 history API
|
// handle fallback for HTML5 history API
|
||||||
|
|
Loading…
Add table
Reference in a new issue