src/middleware.js (view raw)
1 2 3 4 5 6 7 8 9 10
import { NextResponse } from "next/server"; export function middleware(request) { // We'll handle auth checks in the components instead return NextResponse.next(); } export const config = { matcher: ["/dashboard/:path*", "/login", "/register"], };