aboutsummaryrefslogtreecommitdiff
path: root/modern/src/setupProxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/setupProxy.js')
-rw-r--r--modern/src/setupProxy.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/modern/src/setupProxy.js b/modern/src/setupProxy.js
index c16655c8..3ab7643e 100644
--- a/modern/src/setupProxy.js
+++ b/modern/src/setupProxy.js
@@ -1,6 +1,8 @@
+/* eslint-disable import/no-extraneous-dependencies */
+
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 }));
+export default (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}` }));
};