mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-24 23:27:46 +00:00
fix build
This commit is contained in:
@@ -221,7 +221,7 @@ export async function GET(request: NextRequest) {
|
||||
|
||||
const res = await sendLoginname(command);
|
||||
|
||||
if (res?.redirect) {
|
||||
if (res && "redirect" in res && res?.redirect) {
|
||||
const absoluteUrl = new URL(res.redirect, request.url);
|
||||
return NextResponse.redirect(absoluteUrl.toString());
|
||||
}
|
||||
@@ -429,7 +429,7 @@ export async function GET(request: NextRequest) {
|
||||
|
||||
const res = await sendLoginname(command);
|
||||
|
||||
if (res?.redirect) {
|
||||
if (res && "redirect" in res && res?.redirect) {
|
||||
const absoluteUrl = new URL(res.redirect, request.url);
|
||||
return NextResponse.redirect(absoluteUrl.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user