feat: temporarily disable http redirection
This commit is contained in:
parent
69b4b739b4
commit
d7958c5e8b
|
|
@ -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,
|
||||
// )
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue