import NextAuth from "next-auth"; import { authOptions } from "../../../../lib/auth"; // Prevent static generation - this route needs runtime env vars export const dynamic = "force-dynamic"; const handler = NextAuth(authOptions); export { handler as GET, handler as POST };