Keep broker path in API CI public URL

This commit is contained in:
Jeppe Bundgaard
2026-07-01 11:02:26 +02:00
parent f5e0baaab6
commit 24badc39d7
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -117,6 +117,10 @@ function resolveBrokerWebSocketUrl(rawUrl, apiBaseUrl) {
websocketUrl.pathname = `/api/edge-broker${brokerPath}`;
}
if (isLocalHost(websocketUrl.hostname)) {
websocketUrl.pathname = websocketUrl.pathname.replace(/^\/edge-broker(?=\/|$)/, "") || "/";
}
return websocketUrl.toString();
}