You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
security+infra: CSP enforcing, structured logging, cleanup dead refs
Content-Security-Policy:
- Promoted from Report-Only to enforcing mode (same policy, tested stable)
- Added img.youtube.com to img-src for YouTube thumbnail
Structured Logging:
- Created app/lib/logger.ts — JSON logger with timestamp, level, route, message
- Replaced all 23 console.* calls across 12 API routes with structured log.info/warn/error
- Zero unstructured console calls remain in API routes
- CloudWatch Logs Insights can now query by route, level, timestamp
Dead Reference Cleanup:
- Removed S3_MODELS_BUCKET from next.config.ts env: block (not used at runtime)
- Updated README: Zustand → React useState + Context (zustand was never imported)
- Updated DOCS.md: S3 SDK references corrected (removed, not used at runtime)
- Updated Amazon_usage.md: S3 SDK status corrected
0 commit comments