- 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
24 lines
730 B
JSON
24 lines
730 B
JSON
{
|
|
"site_name": "Sports News (Dev)",
|
|
"tagline": "The latest sports news, live scores and transfers",
|
|
"theme": "sports",
|
|
"logo": "/assets/logo.svg",
|
|
"favicon": "/favicon.svg",
|
|
"primary_color": "#e63946",
|
|
"secondary_color": "#1d3557",
|
|
"accent_color": "#f1faee",
|
|
"categories": [
|
|
{ "slug": "football", "label": "Football" },
|
|
{ "slug": "basketball", "label": "Basketball" },
|
|
{ "slug": "formula1", "label": "Formula 1" },
|
|
{ "slug": "tennis", "label": "Tennis" },
|
|
{ "slug": "mma", "label": "MMA" }
|
|
],
|
|
"bridge_endpoint": "http://localhost:3200",
|
|
"wp_endpoint": "http://localhost:8080/wp-json",
|
|
"locale": "en-US",
|
|
"timezone": "Europe/Lisbon",
|
|
"ads_enabled": false,
|
|
"analytics_id": null
|
|
}
|