We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b2062 commit a295913Copy full SHA for a295913
site/src/middleware/redirectToMainHost.ts
@@ -23,7 +23,7 @@ export function withRedirectToMainHostMiddleware(middleware: CustomMiddleware) {
23
return NextResponse.redirect(redirectSiteConfig.url);
24
}
25
26
- return NextResponse.rewrite(new URL(`/main/en/404`, request.url));
+ return new NextResponse(null, { status: 404 });
27
28
return middleware(request);
29
};
0 commit comments