Is it true that i can increase the 5s limit if i upgrade to pro?

• On Pro and Enterprise plans, with fluid compute enabled, you can configure a maximum duration up to 800 s (~13 minutes). "

i only need to buy? or do i need to activate anywhere

Yes, that’s correct! On Pro and Enterprise plans, you can increase the function timeout beyond the 5-second limit.

Here’s what you need to do:

  1. Upgrade to Pro or Enterprise - The extended timeout feature is only available on these paid plans
  2. Enable Fluid Compute - This needs to be activated in your project settings
  3. Configure the timeout - You can set the maximum duration up to 800 seconds (~13 minutes)

You can configure the timeout in your vercel.json file:

{   "functions": {     "app/api/long-running-function/route.ts": {       "maxDuration": 300     }   } }

Or for all functions:

{   "functions": {     "app/api/**/route.ts": {       "maxDuration": 300     }   } }

The timeout is specified in seconds, so 300 = 5 minutes, 800 = ~13 minutes.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.