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.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →