-
Notifications
You must be signed in to change notification settings - Fork 287
fix: increase generate API timeout to 15 minutes for video generation #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
8fb3066
ce7b5c0
0773ddd
88450fb
3b8ddc6
889f2f2
55908d7
b39b37d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "functions": { | ||
| "src/app/api/generate/route.ts": { | ||
| "maxDuration": 900 | ||
| } | ||
|
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: To set Vercel Function timeouts for Next.js App Router route handlers ( Example (
|
||
| } | ||
| } | ||
|
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check the documented timeout requirements in CLAUDE.md
# Search for timeout-related documentation
rg -n -C3 'timeout|maxDuration|generate' CLAUDE.mdRepository: shrimbly/node-banana Length of output: 3509 🏁 Script executed: cat -n vercel.jsonRepository: shrimbly/node-banana Length of output: 207 Configure API route timeouts per project documentation. The
🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this route at the repository’s 5-minute timeout.
Changing
maxDurationto 900 breaks the file-specific contract forsrc/app/api/generate/route.ts. If video jobs need 15 minutes, they should move to a separate endpoint or workflow instead of changing the shared generate route’s timeout here.As per coding guidelines, "
**/api/generate/route.ts: Image generation API route must have a 5 minute timeout insrc/app/api/generate."🤖 Prompt for AI Agents