#why Pro Plan's maxDuration is not 300s by default?

12 messages · Page 1 of 1 (latest)

jolly narwhal
#

hi. title says all.
in order to increase max duration about Route Hander or Server Actions, we need to add export const maxDuration = 300.
but, why maxDuration = 300 is not default for Vercel Pro plan ?
Is there any hidden intention of this policy ?

thank you

midnight echoBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wary relic
#

they changed it to 15 seconds by default at the end of last year I believe

#

I can guess why, a lower run time by default means vercel saves some money

#

but thats just my guess

#

if you really want to get the details behind their reasoning then either contact vercel support or post on their github discussions page

#

no-one here can speak on behalf of vercel

jolly narwhal
#

@wary relic yeah, you are right. thank you for answer 🙂

visual hill
#

I would say vercel doesn’t want you to incur a huge bill in case you have a bug. An infinite loop in your code + 6 min timeout will not make your credit card happy.

#

In the pro plan everything is measured so they probably don’t want you to accidentally burn your bank account

#

You can always reconfigure the timeout, which is a way to tell them “I guarantee this code won’t have an infinite loop and if I f*ck up I take all responsibilities”

jolly narwhal
#

@visual hill interesting, it also make sense. how did you catch this credit card issue. haha