import NextAuth from "next-auth"; import { authOptions } from "@/app/_lib/authentication"; // Force this route to be dynamic (not statically generated at build time) export const dynamic = 'force-dynamic'; const handler = NextAuth(authOptions); export { handler as GET, handler as POST };