From 972909781114ba57d1525cb430e13607a96c033f Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Fri, 17 Jan 2025 13:17:18 +0100 Subject: [PATCH] readd localhost exception --- apps/login/src/lib/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/login/src/lib/api.ts b/apps/login/src/lib/api.ts index 6ccee72c68..31301fdc77 100644 --- a/apps/login/src/lib/api.ts +++ b/apps/login/src/lib/api.ts @@ -4,10 +4,10 @@ import { getInstanceByHost } from "./zitadel"; export async function getInstanceUrl(host: string): Promise { const [hostname, port] = host.split(":"); - // if (hostname === "localhost") { - // console.log("fallback to ZITADEL_API_URL"); - // return process.env.ZITADEL_API_URL || ""; - // } + if (hostname === "localhost") { + console.log("fallback to ZITADEL_API_URL"); + return process.env.ZITADEL_API_URL || ""; + } const instance = await getInstanceByHost(host).catch((error) => { console.error(`Could not get instance by host ${host}`, error);