From ecea8a6005d73627b1b360853e9e3f50fe41039d Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:56:37 +0900 Subject: [PATCH] fix: use static maxDuration value for Next.js 16 compatibility (#160) --- app/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index e8719a5..dd2fbae 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -16,7 +16,7 @@ import { } from "@/lib/langfuse" import { getSystemPrompt } from "@/lib/system-prompts" -export const maxDuration = parseInt(process.env.MAX_DURATION || "60", 10) +export const maxDuration = 300 // File upload limits (must match client-side) const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB