DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

Vercel: Server Timed Out

Got this screenshot in my DM as the frontend developer on a project,some certain pages are not loading.

Screenshot of server timed out on Vercel

Upon investigating I realized that if the page was refreshed it would come up.

Essentially the affected pages are server-side rendered, and a recent push to the endpoints that serve them is taking so long to run.

Vercel has limits on running functions, depending on the plan that you're in, the invocation would time out and return the page above.

The backend needs refactoring, but we needed to mitigate this.

Vercel has configurations to change some defaults. You can increase the maxDuration timeout depending on the plan that you are

Ivercel.json config

Created/update a vercel.json file accordingly, perhaps, as seen above.

We were fine.

Top comments (0)