feat: add VITE_MAINTENANCE_MODE env var for service screen

Set VITE_MAINTENANCE_MODE=true in .env to show an "Under Service"
screen and block all transactions. No hardware init, no Lightning
connection — just a static screen.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-03-28 00:50:34 -04:00
commit ca6d8c4f68
5 changed files with 34 additions and 3 deletions

View file

@ -187,6 +187,9 @@ ipcMain.handle('get-config', () => {
// Operator identity (comma-separated hex pubkeys)
operatorPubkeys: process.env.VITE_OPERATOR_PUBKEYS || '',
// Maintenance mode — show "out of service" screen
maintenanceMode: process.env.VITE_MAINTENANCE_MODE === 'true',
}
})