aboutsummaryrefslogtreecommitdiff
path: root/modern/src/setupProxy.js
blob: e5ca76d77e5a47cc39eec466eff0d63746389907 (plain)
1
2
3
4
5
6
const proxy = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(proxy('/api/socket', { target: `ws://${process.env.REACT_APP_URL_NAME}`, ws: true }));
  app.use(proxy('/api', { target: `http://${process.env.REACT_APP_URL_NAME}` }));
};