Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
peintnermax committed Dec 27, 2024
1 parent a6c1016 commit be13b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/login/src/app/login/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit be13b0e

Please sign in to comment.