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:
Souji
2025-11-28 12:37:19 +01:00
committed by GitHub
parent b2cbdf1567
commit 444e55a093
5 changed files with 377 additions and 2 deletions

View File

@@ -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);