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