fix: env variable typo

This commit is contained in:
trafficlunar 2026-10-24 00:36:02 +01:00
parent b2e1ab2d2f
commit c835d5284e

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server"; import { NextRequest, NextResponse } from "next/server";
export function GET(req: NextRequest) { 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= target.search = req.nextUrl.search; // keeps ?error=
return NextResponse.redirect(target); return NextResponse.redirect(target);
} }