diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 866b2be..f312a22 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,3 +1,7 @@ import { handlers } from "@/lib/auth" +// Mark this route as dynamic to prevent build-time data collection +// NextAuth requires runtime environment variables and cannot be pre-rendered +export const dynamic = "force-dynamic" + export const { GET, POST } = handlers