lilith-platform.live/codebase/@features/provider-website
Natalie 32883f6508 fix(quinn.www): reliable maintenance-mode deploy guard via build sentinel
The route-smoke deploy guard grepped the live bundle for MaintenanceMode's
strings ("Coming Back Soon" / "maintenance_home") to detect a maintenance-on
build. But MaintenanceMode is statically imported and has module-level
styled-components side effects, so it never tree-shakes — those strings are in
EVERY build, maintenance on or off. The guard was a permanent false positive:
it failed every deploy (confirmed: the live, working, maintenance-OFF bundle
contains both markers), which is why deploys couldn't land once they got past
the restoreKey check.

Emit a dedicated sentinel from App.tsx inside `if (VITE_MAINTENANCE_MODE ===
'true')`. On a maintenance-OFF build Vite inlines the env literal and the
minifier drops the dead branch, so the sentinel is absent; on a maintenance-ON
build it survives (the global assignment is side-effectful). route-smoke.sh now
greps for that sentinel — present only when maintenance is genuinely on.

Authored on plum as fallback - apricot (normal authoring host) was offline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 04:42:50 -05:00
..
data-api breaking(api): 💥 Update client entity schema, prospector classification, and admin photo export routes with breaking changes 2026-06-10 14:58:14 -07:00
frontend-public fix(quinn.www): reliable maintenance-mode deploy guard via build sentinel 2026-06-19 04:42:50 -05:00
shared/src feat(tour-scheduling): Add tour calendar, map, and contact buttons UI components; update tour-stop entities and scheduling logic; integrate into destination and tour pages 2026-06-04 20:51:17 -07:00