mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
refactor(guide): always redirect to introduction
This commit is contained in:
9
apps/guide/src/middleware.ts
Normal file
9
apps/guide/src/middleware.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NextResponse, type NextRequest } from 'next/server';
|
||||
|
||||
export default async function middleware(request: NextRequest) {
|
||||
return NextResponse.redirect(new URL('/guide/home/introduction', request.url));
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ['/'],
|
||||
};
|
||||
Reference in New Issue
Block a user