1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-29 01:59:42 +02:00

fix: Use server base path for socket connection (#772)

Closes #768
This commit is contained in:
Emmanuel Guyot 2024-05-23 23:59:44 +02:00 committed by GitHub
parent 8d4c644b5b
commit 880c5d4def
2 changed files with 3 additions and 1 deletions

View file

@ -13,7 +13,7 @@ io.sails.environment = process.env.NODE_ENV;
const { socket } = io;
socket.path = `${Config.BASE_PATH}/socket.io`;
socket.path = `${Config.SERVER_BASE_PATH}/socket.io`;
socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle
['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].forEach((method) => {