shlogg · Early preview
Ramu Narasinga @karthik-m22

Software Engineering: Maintenance Mode Check In Grida Source Code

Maintenance mode in Vercel: Reviewing Grida's code for detecting maintenance mode and redirecting to a static page when traffic spikes or app fails.

In this article, we review the code related to maintenance mode check in Grida source code, but first we need to understand what a maintenance mode is in Vercel.


  
  
  Maintenance mode in Vercel

I am quoting the documentation found in Maintenance Page Example
below:

When we do a release, promotion, event, etc. that might bring more attention than usual to a page;

Its a good idea to have a backup plan that includes showing a different page to the users in case something fails. If this page receives a lot of traffic, we can use the edge, a previously generated static page and Edge Config...