I have an API endpoint on a NextJS project that needs longer than 60s to run. I'm on a pro Vercel plan but for some reason cannot get the timeout limit to increase.
At the endpoint itself I've tried
export const maxDuration = 300
export const dynamic = 'force-dynamic'
which doesn't seem to do anything, I also tried adding a vercel.json
file at the top level (above /src
) like so:
{
"functions": {
"pages/api/**": {
"memory": 3008,
"maxDuration": 300
},
}
}
Which again isn't working. I've combed through the documentation (mostly here) and also a handful of threads (one example), none of which have helped.
I'm running NextJs version 13.5.6
, am definitely on a pro plan, and Node v18, what am I doing wrong? Am really unsure of what else to try.
Comments
Post a Comment