/**
 * @module middleware
 * @description hooks-up `next-auth` into the page processing pipeline
 */

import { auth } from '@/app/lib/auth'
 
export default auth; // middleware will call NextAuth's `auth` method, which will in turn call) see `auth.ts`
 
export const config = {
  // midleware will NOT be called for paths: ['/api/auth/*', '/_next/static/*', '/_next/image*']
  matcher: ['/((?!api|policy|terms|_next/static|_next/image|.*\\.png$).*)'],
};