mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 02:44:42 +12:00
fix(website): update url
This commit is contained in:
parent
cf23149d17
commit
cfa48cedc3
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ export default function Page() {
|
|||
<div className="flex flex-col gap-4">
|
||||
<a
|
||||
className="dark:bg-dark-400 dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 focus:ring-width-2 focus:ring-blurple flex h-11 transform-gpu cursor-pointer select-none appearance-none place-content-between rounded border border-neutral-300 bg-white p-4 text-base font-semibold leading-none text-black outline-0 hover:bg-neutral-100 focus:ring active:translate-y-px active:bg-neutral-200 dark:text-white"
|
||||
href="https://discord.js.org/#/docs/discord.js"
|
||||
href="https://old.discordjs.dev/#/docs/discord.js"
|
||||
>
|
||||
<div className="flex grow flex-row place-content-between place-items-center gap-4">
|
||||
<div className="flex grow flex-row place-content-between place-items-center gap-4">
|
||||
|
|
|
@ -14,7 +14,7 @@ export default function PackageSelect() {
|
|||
|
||||
const packageMenuItems = useMemo(
|
||||
() => [
|
||||
<a href="https://discord.js.org/#/docs/discord.js" key="discord.js">
|
||||
<a href="https://old.discordjs.dev/#/docs/discord.js" key="discord.js">
|
||||
<MenuItem
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
id="discord-js"
|
||||
|
|
|
@ -19,7 +19,7 @@ export default async function middleware(request: NextRequest) {
|
|||
}
|
||||
|
||||
if (request.nextUrl.pathname.includes('discord.js')) {
|
||||
return NextResponse.redirect('https://discord.js.org/#/docs/discord.js');
|
||||
return NextResponse.redirect('https://old.discordjs.dev/#/docs/discord.js');
|
||||
}
|
||||
|
||||
if (PACKAGES.some((pkg) => request.nextUrl.pathname.includes(pkg))) {
|
||||
|
|
Loading…
Reference in a new issue