chore: make maxDuration configurable via env variable (#157)

Co-authored-by: dayuan.jiang <jiangdy@amazon.co.jp>
This commit is contained in:
Dayuan Jiang
2025-12-08 10:20:52 +09:00
committed by GitHub
parent f6682fe3ac
commit ee9267d54c

View File

@@ -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