import { NextResponse } from "next/server";

export function middleware() {
  // const { pathname } = request.nextUrl

  // // Allow public paths
  // const publicPaths = ['/login', '/_next', '/favicon', '/public']
  // if (publicPaths.some((p) => pathname.startsWith(p))) {
  //   return NextResponse.next()
  // }

  // const auth = request.cookies.get('auth')?.value
  // if (!auth) {
  //   const url = request.nextUrl.clone()
  //   url.pathname = '/login'
  //   return NextResponse.redirect(url)
  // }

  return NextResponse.next();
}

export const config = {
  matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
};
