Skip to content

Commit 81a00f2

Browse files
author
Miriad
committed
fix: maxDuration 60 → 300 for Fluid Compute
maxDuration=60 was overriding Fluid Compute's 300s limit. Gemini generateContent with thinking+search takes ~12s/call. BATCH_SIZE=5 (10 calls) needs ~120s.
1 parent dae1fdf commit 81a00f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/cron/check-research/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const fetchCache = 'force-no-store';
2-
export const maxDuration = 60;
2+
export const maxDuration = 300; // Fluid Compute enabled
33

44
import { type NextRequest } from 'next/server';
55
import { createClient, type SanityClient } from 'next-sanity';

0 commit comments

Comments
 (0)