mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-11-12 07:59:17 +00:00
fix: env variable typo
This commit is contained in:
parent
b2e1ab2d2f
commit
c835d5284e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue