Fix docker-test editor runtime smoke
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-16 20:39:16 +03:00
parent 3b37a217a8
commit 1fe213c5ee
3 changed files with 42 additions and 15 deletions
+2 -1
View File
@@ -604,8 +604,9 @@ export function resolveApiUrl(hostHeader?: string | null) {
? host.slice(0, host.indexOf("]") + 1)
: host.replace(/:\d+$/, "");
const apiHostname = hostname === "127.0.0.1" || hostname === "[::1]" ? "localhost" : hostname;
const port = host.endsWith(":49230") ? "49280" : DEFAULT_API_PORT;
return `${protocol}://${apiHostname}:${DEFAULT_API_PORT}`;
return `${protocol}://${apiHostname}:${port}`;
}
async function getJson<T>(apiUrl: string, path: string): Promise<T> {