fix http-proxy-middleware

This commit is contained in:
Henry Jameson 2025-02-17 23:45:23 +02:00
parent 74fe330e4a
commit 4e130375a7

View file

@ -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