diff --git a/src/setupProxy.js b/src/setupProxy.js new file mode 100644 index 0000000..c132185 --- /dev/null +++ b/src/setupProxy.js @@ -0,0 +1,10 @@ +const { createProxyMiddleware } = require('http-proxy-middleware'); + +module.exports = function (app) { + app.use( + createProxyMiddleware('/api/v1', { + target: 'http://localhost:8090', + changeOrigin: true + }) + ); +};