fix(guide): optimize redirects on middleware level

This commit is contained in:
iCrawl 2023-04-16 17:42:05 +02:00
parent f2fce0a7da
commit eda118dae9
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
2 changed files with 2 additions and 4 deletions

View file

@ -1,5 +1,3 @@
import { redirect } from 'next/navigation';
export default function Page() {
redirect('/guide/home/introduction');
return null;
}

View file

@ -5,5 +5,5 @@ export default async function middleware(request: NextRequest) {
}
export const config = {
matcher: ['/'],
matcher: ['/', '/guide'],
};