Home
Support Forums

Next.js with ISR using netlify-plugin-nextjs timeout after 10.01 seconds

When using revalidate with a longer function waiting for a few seconds on server side I get a timeout error

Task timed out after 10.01 seconds"}

I have followed all instructions on

  1. github - isr: netlify-plugin-nextjs/isr.md at main · netlify/netlify-plugin-nextjs · GitHub
  2. netlify docs : Common configurations | Netlify Docs

Is there a way to configure this timeout threshold? It’s not computationally intensive but just takes a bit longer, so it’s annoying to see it fail because of some time window restrictions.

Hey. Can you ensure the Essnetial Next.js build plugin is at version 4.1.1 or later? If you installed it in the UI there should be a prompt to upgrade, or you can just trigger a new build. If you installed it via npm then just do an upgrade and trigger a new build.

3 Likes

I have the following in my package.json

"@netlify/plugin-nextjs": "^4.1.1",

Is there something i have to configure besides passing revalidate from getStaticProps ?

Edit: Seems like it didn’t update in my version control. It seems to work smoothly now :+1:

1 Like

Thanks for confirming this is working for you now! Happy building :netliconfetti: