From e5be9476a4d2f824e3b3f3e419260cd2cbd7a16d Mon Sep 17 00:00:00 2001 From: ilia Date: Sun, 4 Jan 2026 22:06:49 -0500 Subject: [PATCH] Mark NextAuth route as dynamic to prevent build-time data collection --- app/api/auth/[...nextauth]/route.ts | 4 ++++ 1 file changed, 4 insertions(+) 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