From db065c1b97b7cfe4155355761ce7af49d116638d Mon Sep 17 00:00:00 2001 From: Martin Chak Date: Mon, 7 Nov 2022 21:34:53 -0500 Subject: [PATCH] Uncomment setupProxy for npm start --- src/setupProxy.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 65c696b7..928c19b9 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -1,11 +1,11 @@ -// const { createProxyMiddleware } = require('http-proxy-middleware'); +const { createProxyMiddleware } = require('http-proxy-middleware'); -// module.exports = function(app) { -// app.use( -// '/api', -// createProxyMiddleware({ -// target: 'http://localhost:5000', -// changeOrigin: true, -// }) -// ); -// }; \ No newline at end of file +module.exports = function(app) { + app.use( + '/api', + createProxyMiddleware({ + target: 'http://localhost:5000', + changeOrigin: true, + }) + ); +}; \ No newline at end of file