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.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay