mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
feat(为了SEO重定向类型设置为308永久重定向):
This commit is contained in:
@@ -55,7 +55,7 @@ const noAuthMiddleware = async (req: NextRequest, ev: any) => {
|
||||
console.log(
|
||||
`redirect from ${req.nextUrl.pathname} to ${redirectToUrl.pathname}`
|
||||
)
|
||||
return NextResponse.redirect(redirectToUrl)
|
||||
return NextResponse.redirect(redirectToUrl, 308)
|
||||
}
|
||||
}
|
||||
return NextResponse.next()
|
||||
|
||||
Reference in New Issue
Block a user