diff --git a/src/setupProxy.js b/src/setupProxy.js index bb16be4..d383e79 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -2,12 +2,10 @@ const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = function (app) { app.use( - '/api', + '/api/v2', createProxyMiddleware({ target: 'http://localhost:8090', - pathRewrite: { - '^/api': '' - } + changeOrigin: true }) ); };