readd localhost exception

This commit is contained in:
Max Peintner
2025-01-17 13:17:18 +01:00
parent d9ba427b6a
commit 9729097811

View File

@@ -4,10 +4,10 @@ import { getInstanceByHost } from "./zitadel";
export async function getInstanceUrl(host: string): Promise<string> { export async function getInstanceUrl(host: string): Promise<string> {
const [hostname, port] = host.split(":"); const [hostname, port] = host.split(":");
// if (hostname === "localhost") { if (hostname === "localhost") {
// console.log("fallback to ZITADEL_API_URL"); console.log("fallback to ZITADEL_API_URL");
// return process.env.ZITADEL_API_URL || ""; return process.env.ZITADEL_API_URL || "";
// } }
const instance = await getInstanceByHost(host).catch((error) => { const instance = await getInstanceByHost(host).catch((error) => {
console.error(`Could not get instance by host ${host}`, error); console.error(`Could not get instance by host ${host}`, error);