From ae822a2a39a38e3f3715c4573835b0ecd8646fa4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 11 Jul 2021 21:13:04 -0700 Subject: Fix proxy --- modern/src/setupProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src') diff --git a/modern/src/setupProxy.js b/modern/src/setupProxy.js index 3ab7643e..cd6a2faa 100644 --- a/modern/src/setupProxy.js +++ b/modern/src/setupProxy.js @@ -2,7 +2,7 @@ const proxy = require('http-proxy-middleware'); -export default (app) => { +module.exports = (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}` })); }; -- cgit v1.2.3