1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-30 08:09:35 +02:00

Fixed bug with overwriting opened tabs. Added proxy for websocket

This commit is contained in:
unknown 2021-06-10 13:05:55 +02:00
parent 936da301b8
commit 78de8752c6
9 changed files with 60 additions and 114 deletions

15
client/src/setupProxy.js Normal file
View file

@ -0,0 +1,15 @@
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
const apiProxy = createProxyMiddleware('/api', {
target: 'http://localhost:5005'
})
const wsProxy = createProxyMiddleware('/socket', {
target: 'http://localhost:5005',
ws: true
})
app.use(apiProxy);
app.use(wsProxy);
};