Skip to content

refactor: simplify maintenance banner to NEXT_PUBLIC env var, remove API endpoint#206

Merged
VibhavSetlur merged 3 commits into
ModelSEED:stagingfrom
VibhavSetlur:staging
May 20, 2026
Merged

refactor: simplify maintenance banner to NEXT_PUBLIC env var, remove API endpoint#206
VibhavSetlur merged 3 commits into
ModelSEED:stagingfrom
VibhavSetlur:staging

Conversation

@VibhavSetlur
Copy link
Copy Markdown
Collaborator

Replaced the /api/maintenance endpoint with a direct NEXT_PUBLIC_MAINTENANCE_MODE env var check in the OutageBanner component. No nginx routing changes needed — just set the env var, rebuild, redeploy.

…ctly

Removed /api/maintenance endpoint — it was blocked by nginx routing.
OutageBanner now checks NEXT_PUBLIC_MAINTENANCE_MODE at build time.
Sam just sets NEXT_PUBLIC_MAINTENANCE_MODE=true in the env, rebuilds,
and the banner appears — no nginx config changes needed.
Copilot AI review requested due to automatic review settings May 20, 2026 16:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@VibhavSetlur VibhavSetlur merged commit 8ea9f86 into ModelSEED:staging May 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants