mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 02:14:42 +12:00
fix(guide): optimize redirects on middleware level
This commit is contained in:
parent
f2fce0a7da
commit
eda118dae9
2 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function Page() {
|
||||
redirect('/guide/home/introduction');
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -5,5 +5,5 @@ export default async function middleware(request: NextRequest) {
|
|||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ['/'],
|
||||
matcher: ['/', '/guide'],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue