feat: temporarily disable http redirection

This commit is contained in:
DIYgod
2023-05-11 10:49:38 +01:00
parent 69b4b739b4
commit d7958c5e8b
+6 -6
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,
// )
}
}