import { NextRequest, NextResponse } from "next/server"; export function middleware(request: NextRequest) { // Allow public routes const publicPaths = [ "/", "/api-docs", "/api/auth/login", "/api/auth/register", "/api/auth/callback", "/api/auth/logout", ]; const isPublicPath = publicPaths.some(path => request.nextUrl.pathname.startsWith(path) ); if (isPublicPath) { return NextResponse.next(); } // For now, allow all other routes - we'll add proper authentication checks later return NextResponse.next(); } export const config = { matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"], };