mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(guide): optimize redirects on middleware level
This commit is contained in:
@@ -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'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user