Merged in fix/redirect-continue-header (pull request #2008)
fix: add missing x-continue header to properly handle root 404s * fix: add missing x-continue header to properly handle root 404s Approved-by: Michael Zetterberg
This commit is contained in:
@@ -59,7 +59,7 @@ export const middleware: NextMiddleware = async (request) => {
|
||||
headers,
|
||||
})
|
||||
}
|
||||
|
||||
headers.set("x-continue", "1")
|
||||
return NextResponse.next({ headers })
|
||||
} catch (e) {
|
||||
console.error("Redirect error: ", e)
|
||||
|
||||
Reference in New Issue
Block a user