mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 14:47:33 +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 || "";
|
||||
return new URL(
|
||||
`${basePath}${path}`,
|
||||
|
||||
// keep this check to allow localhost for local development
|
||||
forwardedHost?.startsWith("http")
|
||||
? forwardedHost
|
||||
: `${forwardedProto}://${forwardedHost}`,
|
||||
`${forwardedProto}//${forwardedHost}`,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user