import NextAuth from "next-auth";
import { authConfig } from "@/lib/auth.config";

/**
 * Next.js 16 proxy (formerly middleware).
 * Uses edge-safe auth config only -- no bcryptjs or Prisma.
 */
export default NextAuth(authConfig).auth;

export const config = {
  matcher: ["/dashboard/:path*", "/auth/:path*"],
};
