feat: temporarily disable http redirection

This commit is contained in:
DIYgod 2023-05-11 10:49:38 +01:00
parent 69b4b739b4
commit d7958c5e8b
No known key found for this signature in database
1 changed files with 6 additions and 6 deletions

View File

@ -23,12 +23,12 @@ export default async function middleware(req: NextRequest) {
}
} catch (error) {}
if (!cfHttps) {
return NextResponse.redirect(
`https://${req.headers.get("host")}${req.nextUrl.pathname}${
req.nextUrl.search
}`,
301,
)
// return NextResponse.redirect(
// `https://${req.headers.get("host")}${req.nextUrl.pathname}${
// req.nextUrl.search
// }`,
// 301,
// )
}
}