Skip to content

Commit f12e233

Browse files
committed
fix: maxDuration 300→60 for Vercel hobby plan
Vercel hobby plan caps serverless functions at 60s. The heavy work runs inside after() callbacks which have their own execution context, so 60s is sufficient for the initial request handler.
1 parent e0b0fdd commit f12e233

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 = 300;
2+
export const maxDuration = 60;
33

44
import { type NextRequest } from 'next/server';
55
import { after } from 'next/server';

0 commit comments

Comments
 (0)