Anyone know an implementation of a Maintenance page similar to this
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.