feat(F-097): completed feature

This commit is contained in:
chattie
2026-08-20 22:33:07 +02:00
parent d211797a09
commit db327a8dc3
9 changed files with 143 additions and 43 deletions

View File

@@ -0,0 +1,10 @@
# F-097 — Implementer evidence
- Fixed the admin catch-all POST proxy: it no longer sends `Content-Type: application/json` when the request has no body.
- This allows `POST /api/products/:id/generate-seo` to reach the backend; previously Fastify rejected the empty request with `FST_ERR_CTP_EMPTY_JSON_BODY` (400).
- Rebuilt and restarted the production monolith.
Validation:
- Admin production build: exit 0
- Authenticated `/api/admin/settings`: HTTP 200
- Authenticated empty-body SEO request: HTTP 422 `AI_NOT_CONFIGURED` with actionable message (instead of HTTP 400)