mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03: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);
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
:root {
|
||||
--legacy-color: hsl(153, 48%, 41%);
|
||||
--voice-color: hsl(211.3, 66.1%, 65.3%);
|
||||
--v15-color: oklch(70.4% 0.191 22.216);
|
||||
}
|
||||
|
||||
.legacy {
|
||||
@@ -37,3 +38,7 @@
|
||||
.voice {
|
||||
--color-fd-primary: var(--voice-color);
|
||||
}
|
||||
|
||||
.v15 {
|
||||
--color-fd-primary: var(--v15-color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user