How to set maxDuration in Server Action
Unanswered
American Avocet posted this in #help-forum
American AvocetOP
Hi,
I recently saw that Vercel is supporting longer serverless function durations and we set it via a
https://vercel.com/changelog/serverless-functions-can-now-run-up-to-5-minutes
Can we also set that in a NextJS server action or would we have to convert those into an API Route Handler to be able to set the
Thanks!
Veronica
I recently saw that Vercel is supporting longer serverless function durations and we set it via a
maxDuration property. https://vercel.com/changelog/serverless-functions-can-now-run-up-to-5-minutes
Can we also set that in a NextJS server action or would we have to convert those into an API Route Handler to be able to set the
maxDuration?Thanks!
Veronica
4 Replies
American AvocetOP
Hi any follow up here?
Philippine Crocodile
@American Avocet Did you resolve this?
Dutch Smoushond
Also interested in this @American Avocet @Philippine Crocodile. Any solutions?
Dutch Smoushond
I was able to resolve this. It appears that the server action is included inside the page the calls the action. so by setting the maxDuration of the page, it is also applied to the server action.