fix: remove middleware file

This commit is contained in:
Elio Bischof
2023-05-22 16:28:43 +02:00
parent 682ed6c94f
commit 06a4cfe388

View File

@@ -1,12 +0,0 @@
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
// This function can be marked `async` if using `await` inside
export function middleware(request: NextRequest) {
return NextResponse.redirect(new URL('/home', request.url));
}
// See "Matching Paths" below to learn more
export const config = {
matcher: '/about/:path*',
};