Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
1.0 KiB
1.0 KiB
Production runbook
Deploy gate
- Run
pnpm install --frozen-lockfile,pnpm check,pnpm build, andpnpm test:e2e. - Build the image with immutable commit and release tags.
- Deploy to staging, then run
SMOKE_BASE_URL=https://staging.example.com pnpm smoke:test. - Verify browser error rate, login/payment failure rate, WebSocket disconnects, and p75 LCP/INP/CLS.
- Roll out 5% → 25% → 100%; stop when a threshold below is crossed.
Alert thresholds
- Browser/API error rate > 2% for 5 minutes.
- Login or payment failure rate > 3% for 5 minutes.
- WebSocket disconnect rate > 5% for 10 minutes.
- Mobile p75 LCP > 2.5s, INP > 200ms, or CLS > 0.1 for 30 minutes.
Rollback
- Route traffic to the previous immutable image tag.
- Run
pnpm smoke:testagainst production. - Confirm login, discovery, booking, payment callback, and health metrics.
- Record incident owner, release tag, start/end time, and follow-up deadline.
Rollback and device-push drills must be signed off in staging before public rollout.