Add Maintenance Mode #79070
Nishchit14
started this conversation in
Ideas
Replies: 1 comment
-
I would suggest doing this before traffic reaching your nextjs deployment. If the maintenance feature flag has been toggled; Route all traffic to a different container or return a static uploaded page directly (thus traffic never reaching your deployment anymore) If nextjs has to check a config, you need to do a redeployment to trigger maintenance mode, which is a kind of weird |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Ensure users see a dedicated maintenance page with a clear message when Maintenance Mode is enabled.
Non-Goals
No response
Background
Most SaaS platforms display a maintenance notice to inform users and avoid confusion during downtime. Currently, there's no fallback experience in Nextjs—users face broken pages or unclear errors, which leads to poor UX. This feature ensures clear communication and improves trust during updates or outages.
Proposal
The Nextjs should check a
maintenance_mode
flag at the middleware, config, or routing level. If true, it should redirect all pages to a static, customizable maintenance page.Beta Was this translation helpful? Give feedback.
All reactions