Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from dcsil/fix-proxy
Browse files Browse the repository at this point in the history
Uncomment setupProxy for npm start
  • Loading branch information
EstaticShark authored Nov 8, 2022
2 parents 7b5e042 + db065c1 commit 619249b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/setupProxy.js
Original file line number Diff line number Diff line change
@@ -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,
// })
// );
// };
module.exports = function(app) {
app.use(
'/api',
createProxyMiddleware({
target: 'http://localhost:5000',
changeOrigin: true,
})
);
};

0 comments on commit 619249b

Please sign in to comment.