Insight
Backend APIs deployed on custom domains (like mission.so1.io) are often invisible — returning JSON 404s to browser visitors. This is wasted brand surface. A dual-mode landing page turns the backend domain into both a conversion funnel for public visitors and an admin dashboard for authenticated operators.How it works
The page serves identical HTML to all visitors. A hidden admin panel (display:none) attempts to fetch an authenticated metrics endpoint. If the request succeeds (user is authenticated via the console’s proxy), JavaScript reveals the telemetry section showing uptime, request counts, and adapter connectivity. If it fails (public visitor), the admin panel stays hidden and the visitor sees only the branded marketing page with CTAs to the product.
Why this matters
- Zero-cost brand presence: No separate frontend deployment — the landing page compiles into the API binary
- Conversion surface: Every SO1 subdomain now funnels to the product (rover.so1.io) rather than showing a JSON error
- Operational visibility: Admins get live system status without needing a separate monitoring tool
- Progressive enhancement: The admin panel degrades gracefully — no broken UI for unauthenticated users