/* eslint-disable import/no-extraneous-dependencies */ const proxy = require('http-proxy-middleware'); module.exports = (app) => { app.use(proxy('/api/socket', { target: `wss://${process.env.REACT_APP_URL_NAME}`, changeOrigin: true, ws: true })); app.use(proxy('/api', { target: `https://${process.env.REACT_APP_URL_NAME}`, changeOrigin: true })); };