import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"

// NOTE: Middleware is temporarily disabled due to Edge Runtime compatibility issues
// with bcrypt. Auth protection is still enforced at the Server Action level.
// This will be re-enabled in a future update with proper edge-compatible auth.

export async function middleware(request: NextRequest) {
  // Temporarily allow all requests
  // Auth checks are still performed in Server Actions
  return NextResponse.next()
}

export const config = {
  matcher: [
    /*
     * Match all request paths except for the ones starting with:
     * - api (API routes)
     * - _next/static (static files)
     * - _next/image (image optimization files)
     * - favicon.ico (favicon file)
     */
    "/((?!api|_next/static|_next/image|favicon.ico).*)",
  ],
}
