commit: 4e130375a72ec976abc98f0f360be75bb34fd041
parent 74fe330e4a47275be10586a7be2b802e73fb3de3
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 17 Feb 2025 23:45:23 +0200
fix http-proxy-middleware
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build/dev-server.js b/build/dev-server.js
@@ -53,7 +53,8 @@ Object.keys(proxyTable).forEach(function (context) {
if (typeof options === 'string') {
options = { target: options }
}
- app.use(proxyMiddleware.createProxyMiddleware(context, options))
+ options.pathFilter = context
+ app.use(proxyMiddleware.createProxyMiddleware(options))
})
// handle fallback for HTML5 history API