Commands
Allow bypassing maintenance
When providing a secret using the --secret flag you can bypass the maintenance mode by accessing the url https://<mysite>/<secret>.
You will be redirected with a cookie containing the hash of the secret. Consequent requests will bypass the maintenance.
Rendering a custom maintenance page
To render a custom maintenance page you must have Edge.js installed and use the --template flag.
To limit runtime execution during maintenance mode, the template is prerendered when activating maintenance.
Redirect users
You can redirect users to a different url by using the --redirect flag.
Refresh and retry
You can configure the Refresh and Retry headers using the --refresh and --retry flags.
The retry value is also passed to the template as
retryAfter.