Next.js Discord

Discord Forum

Vercel functions timeout limit

Answered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Alligator mississippiensisOP
Hello everyone. I was getting an error of timeout for an app hosted on vercel. It seems there is a way to increase the timeout to 60 seconds on hobby plan for api routes. The issue for me is that I'm using a server action. I want to increase the maxDuration for that server action but I can't find a way to do it. I'll appreciate any help give. Thanks

6 Replies

@@ts-ignore https://vercel.com/docs/functions/configuring-functions/duration#node.js-next.js-%3E=-13.5-or-higher-sveltekit-astro-nuxt-and-remix
Alligator mississippiensisOP
Thanks Yi Lon Ma. I checked out this piece of the docs and it helps for api routes. I'm not sure how to do the same for server actions.
Answer
@@ts-ignore Click to see attachment
Alligator mississippiensisOP
Thank you so much Yi Lon Ma. I kept skipping the most important part of the documentation. You have been so helpful. After a long day of trying out everything, I finally have my app working all because of you. Thanks so much.