mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 14:17:32 +00:00
readd localhost exception
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user