mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-21 12:27:47 +00:00
cleanup
This commit is contained in:
@@ -80,7 +80,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
|
||||
} else if (process.env.ZITADEL_API_URL) {
|
||||
instanceUrl = process.env.ZITADEL_API_URL;
|
||||
} else {
|
||||
const host = headers.get("x-zitadel-forward-host") ?? headers.get("host");
|
||||
const host = headers.get("host");
|
||||
|
||||
if (host) {
|
||||
const [hostname, port] = host.split(":");
|
||||
@@ -94,8 +94,6 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
|
||||
throw new Error("Service URL could not be determined");
|
||||
}
|
||||
|
||||
console.log("Service URL", instanceUrl);
|
||||
|
||||
return {
|
||||
serviceUrl: instanceUrl,
|
||||
};
|
||||
|
Reference in New Issue
Block a user