mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-21 22:07:41 +00:00
fix condition
This commit is contained in:
@@ -75,7 +75,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
|
|||||||
// use the forwarded host if available (multitenant), otherwise fall back to the host of the deployment itself
|
// use the forwarded host if available (multitenant), otherwise fall back to the host of the deployment itself
|
||||||
if (forwardedHost) {
|
if (forwardedHost) {
|
||||||
instanceUrl = forwardedHost;
|
instanceUrl = forwardedHost;
|
||||||
instanceUrl = instanceUrl.startsWith("https://")
|
instanceUrl = instanceUrl.startsWith("http://")
|
||||||
? instanceUrl
|
? instanceUrl
|
||||||
: `https://${instanceUrl}`;
|
: `https://${instanceUrl}`;
|
||||||
} else if (process.env.ZITADEL_API_URL) {
|
} else if (process.env.ZITADEL_API_URL) {
|
||||||
|
Reference in New Issue
Block a user