How to set up Maintenance page for next js application hosted on vercel without having to redeploy

Viewed 84

Anyone know an implementation of a Maintenance page similar to this enter image description here for a next.js application that wont require changing .env variables and redeploying each time site is switched on and off?

I would like to use an API response e.g siteStatus === 'down' or siteStatus === 'up' to set the maintenance page up.

I would appreciate any input on this because I have been stuck on it for a long time.

0 Answers
Related