I have a website with the backend of Strapi CMS on Heroku, and NextJS frontend on Netlify. I don’t know why sometimes while navigating to other pages, the website gives this error of 502 {“errorMessage”:“2021-02-28T07:01:23.806Z 4234f202-e15d-4a25-84ce-79b9c82ac634 Task timed out after 10.01 seconds”}
I know, that this issue comes from limited execution time to 10s of function for serverless apps.
Is there any way to fix this??
Can I reduce the execution time of functions in nextJS??
Thanks in advance,
Judy