修复退出登录路径

This commit is contained in:
2026-04-17 13:04:17 +08:00
parent d3b03cecf2
commit dee056a76a
2 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ export async function GET(request: NextRequest) {
const caregiver = await getCaregiverSession();
const location = caregiver ? redirectTo : buildCaregiverLoginPath(redirectTo);
return NextResponse.redirect(new URL(location, request.url), {
return new NextResponse(null, {
status: 307,
headers: {
Location: location,
},
});
}