fix: revert maxDuration to static value (Next.js requirement) (#121)

This commit is contained in:
Dayuan Jiang
2025-12-06 18:04:23 +09:00
committed by GitHub
parent 1e0b1ed970
commit 8d898d8adc
2 changed files with 1 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ import {
} from "@/lib/langfuse"
import { getSystemPrompt } from "@/lib/system-prompts"
export const maxDuration = Number(process.env.MAX_DURATION) || 60
export const maxDuration = 300
// File upload limits (must match client-side)
const MAX_FILE_SIZE = 2 * 1024 * 1024 // 2MB

View File

@@ -50,6 +50,3 @@ AI_MODEL=global.anthropic.claude-sonnet-4-5-20250929-v1:0
# Access Control (Optional)
# ACCESS_CODE_LIST=your-secret-code,another-code
# API Route Configuration (Optional)
# MAX_DURATION=60 # Max duration in seconds for API routes (default: 60)