修复退出登录路径
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user