mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
feat(guide): updating section (#11322)
feat: sidebar, layout, initial content Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,11 @@ export function middleware(request: NextRequest) {
|
||||
}
|
||||
|
||||
// Redirect old urls to /legacy
|
||||
if (!request.nextUrl.pathname.startsWith('/legacy') && !request.nextUrl.pathname.startsWith('/voice')) {
|
||||
if (
|
||||
!request.nextUrl.pathname.startsWith('/legacy') &&
|
||||
!request.nextUrl.pathname.startsWith('/voice') &&
|
||||
!request.nextUrl.pathname.startsWith('/v15')
|
||||
) {
|
||||
const newUrl = request.nextUrl.clone();
|
||||
newUrl.pathname = `/legacy${newUrl.pathname}`;
|
||||
return NextResponse.redirect(newUrl);
|
||||
|
||||
Reference in New Issue
Block a user