feat(bridge): implement Fastify bridge API for WordPress (BIT-350) #1

Merged
spark merged 2 commits from task/BIT-350-bridge-api into main 2026-03-23 14:55:51 +00:00
Owner
  • Fastify + TypeScript service in bridge/ listening on port 3200
  • WordPress REST API client with _embed support and data normalization
  • Redis stale-while-revalidate cache with in-process Map fallback
  • Domain routing: reads config/domains/.json per Host header
  • Routes: /homepage, /articles, /articles/:slug, /articles/:slug/related,
    /categories, /categories/:slug, /trending, /api/tags, /api/media/:id,
    /api/site-config, /health
  • /api/posts and /api/categories aliases redirect to canonical routes
  • Rate limiting via @fastify/rate-limit; CORS via @fastify/cors
  • Error handling: WP unavailable → serve stale cache or 503
  • Domain configs for localhost and newsproject.bitreport.pt

Co-Authored-By: Paperclip [email protected]
Made-with: Cursor

- Fastify + TypeScript service in bridge/ listening on port 3200 - WordPress REST API client with _embed support and data normalization - Redis stale-while-revalidate cache with in-process Map fallback - Domain routing: reads config/domains/<host>.json per Host header - Routes: /homepage, /articles, /articles/:slug, /articles/:slug/related, /categories, /categories/:slug, /trending, /api/tags, /api/media/:id, /api/site-config, /health - /api/posts and /api/categories aliases redirect to canonical routes - Rate limiting via @fastify/rate-limit; CORS via @fastify/cors - Error handling: WP unavailable → serve stale cache or 503 - Domain configs for localhost and newsproject.bitreport.pt Co-Authored-By: Paperclip <[email protected]> Made-with: Cursor
spark added 1 commit 2026-03-23 14:26:33 +00:00
- Fastify + TypeScript service in bridge/ listening on port 3200
- WordPress REST API client with _embed support and data normalization
- Redis stale-while-revalidate cache with in-process Map fallback
- Domain routing: reads config/domains/<host>.json per Host header
- Routes: /homepage, /articles, /articles/:slug, /articles/:slug/related,
  /categories, /categories/:slug, /trending, /api/tags, /api/media/:id,
  /api/site-config, /health
- /api/posts and /api/categories aliases redirect to canonical routes
- Rate limiting via @fastify/rate-limit; CORS via @fastify/cors
- Error handling: WP unavailable → serve stale cache or 503
- Domain configs for localhost and newsproject.bitreport.pt

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
Author
Owner

Conflict auto-resolution failed: could not automatically merge main into task/BIT-350-bridge-api. Manual intervention required.

BitReport PR Conflict Resolver

**Conflict auto-resolution failed**: could not automatically merge `main` into `task/BIT-350-bridge-api`. Manual intervention required. _BitReport PR Conflict Resolver_
Author
Owner

Auto-resolved conflicts: merged main into task/BIT-350-bridge-api using -X theirs strategy (base branch version preferred in conflicts).

Please review the merge commit to verify correctness.

BitReport PR Conflict Resolver

**Auto-resolved conflicts**: merged `main` into `task/BIT-350-bridge-api` using `-X theirs` strategy (base branch version preferred in conflicts). Please review the merge commit to verify correctness. _BitReport PR Conflict Resolver_
spark added 1 commit 2026-03-23 14:52:51 +00:00
Automated merge of main into task/BIT-350-bridge-api (PR #1).
Conflict strategy: -X theirs (base branch preferred).

Co-Authored-By: Paperclip <[email protected]>
spark merged commit d2d56a4751 into main 2026-03-23 14:55:51 +00:00
spark deleted branch task/BIT-350-bridge-api 2026-04-02 20:50:52 +01:00
Sign in to join this conversation.