Merge branch 'dev' of github.com:zitadel/typescript into dev

This commit is contained in:
Elio Bischof
2025-02-10 17:55:03 +01:00

View File

@@ -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) {