mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:07:21 +01:00
- Bump version to 0.1.1 for tracking - Add webpack-bundle-optimizer script for Next.js config - Simplify ESLint configuration to resolve missing dependencies - Prepare for production deployment with proper version control This deployment includes: - Profile update fixes with banner_url support - LN address validation - Auth cookie fixes for profile updates - Various documentation and testing improvements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
976 B
976 B
Observability
Health
GET /api/healthreturns overall status and dependency checks (Supabase, Redis), 200 when healthy/degraded, 503 when unhealthy.
Metrics (Prometheus)
GET /api/metrics(enable withMETRICS_ENABLED=true; optional bearerMETRICS_TOKEN).- Default Node metrics +
orangecat_app_upgauge. - Prometheus scrape configured in
deployment/production/monitoring/prometheus.yml. - HTTP request metrics:
http_requests_totalandhttp_request_duration_secondsvia a lightweight wrapper (src/lib/api/withMetrics.ts). Example usage wired into/api/health.
Logs (Loki + Promtail)
- Promtail scrapes Docker JSON logs and ships to Loki.
- Grafana dashboards/datasources provisioned under
deployment/production/monitoring/grafana/.
CSP Reporting
- Enforced CSP with optional report-only mirror to
/api/csp-report. - Review CSP reports periodically and tighten sources.
- Toggle report-only via
CSP_REPORT_ONLY=truein the build environment.