From b8a842367b55fc1d7c9093b2bba96baba1e85fbf Mon Sep 17 00:00:00 2001 From: feie9456 Date: Fri, 17 Apr 2026 11:47:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/family/session/route.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/api/family/session/route.ts b/app/api/family/session/route.ts index d55dba9..6abec88 100644 --- a/app/api/family/session/route.ts +++ b/app/api/family/session/route.ts @@ -20,7 +20,12 @@ export async function GET(request: NextRequest) { request.nextUrl.searchParams.get("redirectTo"), ); const existingCaregiver = await getCaregiverSession(); - const response = NextResponse.redirect(new URL(redirectTo, request.url)); + const response = new NextResponse(null, { + status: 307, + headers: { + Location: redirectTo, + }, + }); if (existingCaregiver) { return response;