feat: Support running under subpath (#1451)

This commit is contained in:
Roberto Fernández Iglesias
2026-03-12 22:11:11 +01:00
committed by GitHub
parent 61a3ff55cc
commit 5e6195b252
24 changed files with 97 additions and 33 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const http = {};
return result;
}, new FormData());
return fetch(`${Config.SERVER_BASE_URL}/api${url}`, {
return fetch(`${Config.BASE_PATH}/api${url}`, {
method,
headers,
body: formData,
+1 -1
View File
@@ -10,7 +10,7 @@ import Config from '../constants/Config';
const io = sailsIOClient(socketIOClient);
io.sails.url = Config.SERVER_BASE_URL;
io.sails.path = `${Config.BASE_PATH}/socket.io`;
io.sails.autoConnect = false;
io.sails.reconnection = true;
io.sails.useCORSRouteToGetCookie = false;