aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-11 21:13:04 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-11 21:13:04 -0700
commitae822a2a39a38e3f3715c4573835b0ecd8646fa4 (patch)
tree0ddb495fee9a730c8b732c5cd2d10c442fc17c81 /modern/src
parent702e674ecce7de1a4f4318ef8f30c572264a4560 (diff)
downloadtrackermap-web-ae822a2a39a38e3f3715c4573835b0ecd8646fa4.tar.gz
trackermap-web-ae822a2a39a38e3f3715c4573835b0ecd8646fa4.tar.bz2
trackermap-web-ae822a2a39a38e3f3715c4573835b0ecd8646fa4.zip
Fix proxy
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/setupProxy.js2
1 files changed, 1 insertions, 1 deletions
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}` }));
};