Utils
lib/config.ts¶
- Zod schema for
NODE_ENVandINGEST_API_KEY. UsegetEnv()and helpersisProd/isTest/isDev.
lib/error-handler.ts¶
- Centralize error to JSON translation (placeholder in repo).
lib/logger.ts¶
- Minimal logger wrapper (placeholder). Prefer structured logs and avoid sensitive data.
TODO: Expand error handling and logging cross‑cutting docs as features grow.