Commit graph

2 commits

Author SHA1 Message Date
sirpiglr
1c026f5e76 Improve maintenance mode API by handling multiple environment variable names
Update the maintenance mode API endpoint to check for various Vercel environment variable names and include debug information in responses for easier troubleshooting.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 08b76980-5fd9-40da-aeac-fe3fd5300045
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-07 02:53:55 +00:00
sirpiglr
688cfff89a Add maintenance mode endpoint for Vercel deployments
Create `api/admin/platform/maintenance.ts` to handle maintenance mode logic as a Vercel serverless function, including GET and POST requests for enabling/disabling and admin verification via Supabase.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: eb559abf-e967-427e-a938-a9f28fc6407c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE
Replit-Helium-Checkpoint-Created: true
2025-12-07 02:10:17 +00:00