- Log each step: auth, body parsing, schema validation, encryption, db upsert - Check for API_KEY_ENCRYPTION_SECRET presence before encrypt - Log timing, error details with stack traces - Return specific error messages for each failure point |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| data | ||
| lib | ||
| test | ||
| env.ts | ||
| middleware.ts | ||