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.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

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

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay