diff --git a/backend/src/app/login/route.ts b/backend/src/app/login/route.ts index cbb82d3..a99c514 100644 --- a/backend/src/app/login/route.ts +++ b/backend/src/app/login/route.ts @@ -1,7 +1,7 @@ import { NextRequest, NextResponse } from "next/server"; export function GET(req: NextRequest) { - const target = new URL("/login", process.env.FRONTEND_URL ?? "http://localhost:5173"); + const target = new URL("/login", process.env.NEXT_PUBLIC_FRONTEND_URL ?? "http://localhost:5173"); target.search = req.nextUrl.search; // keeps ?error= return NextResponse.redirect(target); }