mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 17:17:59 +00:00
Update apps/login/src/lib/service.ts
Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -119,10 +119,6 @@ export function constructUrl(request: NextRequest, path: string) {
|
|||||||
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
|
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
|
||||||
return new URL(
|
return new URL(
|
||||||
`${basePath}${path}`,
|
`${basePath}${path}`,
|
||||||
|
`${forwardedProto}//${forwardedHost}`,
|
||||||
// keep this check to allow localhost for local development
|
|
||||||
forwardedHost?.startsWith("http")
|
|
||||||
? forwardedHost
|
|
||||||
: `${forwardedProto}://${forwardedHost}`,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user