Fix docker-test editor runtime smoke
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user