Back Office Runbook
Last reviewed: 2026-04-25
Maintained by: Engineering
Purpose
apps/back-office is the web app for super_admin workflows (clients, issues, audit/compliance oversight, and system health monitoring).
Run Locally
pnpm run dev:back-office
Expected URL:
http://localhost:3002
Prerequisite:
- API should run on
http://localhost:3000
Key Folders / Where Logic Lives
- Routes/pages:
apps/back-office/app - UI components:
apps/back-office/components - API wiring and shared types usage:
apps/back-office/lib
System Health Notes
- Route:
/system-health - Snapshot and alerts refresh automatically every 30 seconds
- Uptime component shows
UnknownwhenUPTIMEROBOT_API_KEYor monitor IDs are not configured
Minimum PR Checks
pnpm run check:back-office
pnpm run lint:back-office
How to Debug Startup Failure
- Confirm API is reachable:
http://localhost:3000/api/health
- Confirm app dependencies are installed:
pnpm install
- Restart app:
pnpm run dev:back-office
- If Next.js cache is stale, remove local build artifacts and restart:
rm -rf apps/back-office/.next