From ee9267d54cc06e5b36e069a12e0eaed2d2f4b2dc Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:20:52 +0900 Subject: [PATCH] chore: make maxDuration configurable via env variable (#157) Co-authored-by: dayuan.jiang --- 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 10ae529..e8719a5 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 = 60 +export const maxDuration = parseInt(process.env.MAX_DURATION || "60", 10) // File upload limits (must match client-side) const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB