Skip to content

Commit 31c050b

Browse files
[dev] [Marfuen] mariano/timeout (#1572)
* chore(deps): update @AI-SDK packages and bump prisma binary targets * chore: enhance task automation with markdown reading and bot checks * chore(app): add PrismaPlugin to webpack configuration for server bundle * chore(app): re-enable .md imports as raw strings in webpack config * chore(app): add Turbopack configuration for .md file imports * chore(app): enable importing .md files as raw strings in webpack config * fix(secrets): implement form validation and submission for adding secrets * chore(app): add runtime configuration for long-running automation tasks --------- Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
1 parent b3af710 commit 31c050b

File tree

1 file changed

+4
-0
lines changed
  • apps/app/src/app/api/tasks-automations/chat

1 file changed

+4
-0
lines changed

apps/app/src/app/api/tasks-automations/chat/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import { type ChatUIMessage } from '../../../(app)/[orgId]/tasks/[taskId]/automa
1515
import automationPrompt from './automation-prompt.md';
1616
import lambdaPrompt from './prompt.md';
1717

18+
// Ensure sufficient time for long-running automation orchestration
19+
export const runtime = 'nodejs';
20+
export const maxDuration = 300; // seconds (Vercel max)
21+
1822
interface BodyData {
1923
messages: ChatUIMessage[];
2024
modelId?: string;

0 commit comments

Comments
 (0)