Next.js Discord

Discord Forum

Cant change the default limit of 15 seconds for nodejs function

Unanswered
Townsend's Warbler posted this in #help-forum
Open in Discord
Townsend's WarblerOP
Im having trouble configuring the timeout limit in my nodejs function.

Im running nextjs 14 and I have a PRO account. The docs says clearly that for setting a limit in the 14 version, I just need to put the following line in my api route as the following:

export const maxDuration = 300

This should change the timeout limit (that is still in 15 seconds) right?

Here is a discussion in github for more details!

https://github.com/orgs/vercel/discussions/7230

1 Reply

Townsend's WarblerOP
Changing to just edge runtime does not change the runtime also... it will stick to nodejs