3ee362fe6951a2624031ded0fe5ca47ce3c3dcae
Tests / writer-pipeline tests (push) Successful in 1m14s
Tests / bridge tests (push) Successful in 1m18s
Tests / frontend lib tests (push) Successful in 3m8s
Tests / writer-pipeline tests (pull_request) Successful in 3m23s
Tests / bridge tests (pull_request) Successful in 3m21s
Tests / frontend lib tests (pull_request) Successful in 1m16s
andebol.net home fails LCP (~8s) and Lighthouse Performance (~26) while newsproject.bitreport.pt (same bridge/cache stack) passes. Root cause: FpaAgendaSection is andebol.net-only (fpa_agenda_enabled + institutional theme, homepage only) and renders up to 48 game cards with heavy per-card CSS (gradients, color-mix, shadows). Measured andebol.net home DOM at ~2230 elements vs ~468 on newsproject.bitreport.pt, and Style & Layout main-thread cost consistently ~3x higher, matching the diagnostics in docs/PERFORMANCE_BASELINE.md (no render-blocking scripts, cost concentrated in style/layout). Apply content-visibility: auto + contain-intrinsic-size to .fpa-agenda__card so the browser skips style/layout/paint for off-screen cards (most of the 48 sit below the fold).
Merge pull request 'feat(frontend): branded auth, denser home, editorial visual (BIT-26753)' (#32) from task/BIT-26753-frontend-auth-home-visual into main
Merge pull request 'test(writer-pipeline): featured-image regression guard for revista-imprensa (BIT-28134)' (#37) from fix/BIT-28134-featured-image-regression-guard into main
news-platform
Scalable multi-domain sports news platform — Astro 5 SSR frontend, Fastify bridge, headless WordPress.
Structure
news-platform/
frontend/ # Astro 5 SSR frontend application
bridge/ # Fastify bridge (WordPress REST API cache + normalizer)
writer-pipeline/ # RSS aggregator store, metrics, optional WP drafts (andebol.net)
wordpress/ # WordPress config, themes, plugins
config/domains/ # Per-domain configuration files
docs/ # Architecture and runbooks
deploy/ # LXC provisioning and deploy scripts
Quick Start
# 1. Start WordPress + MySQL
cd wordpress && docker compose up -d
# 2. Start bridge
cd bridge && npm install && npm run dev
# 3. Start frontend
cd frontend && npm install && npm run dev
Open: http://localhost:4321
Documentation
Core
- Architecture + Stack Justification
- Frontend (Astro 5)
- Bridge (Fastify)
- Multi-Domain Config
- SEO Strategy
- Deployment (LXC)
- Service Monitoring
- Runbooks (index)
Aggregator & Writer Pipeline
- Aggregator Architecture & Data Contract
- Aggregator Operations & Costs
- Writer Pipeline — andebol.net
- Writer Tools — Content Aggregation & Ranking
- Editorial Brief — andebol.net
Internationalisation
Related
- Paperclip project: News Platform
- Parent issue: BIT-345
- Gitea remote:
https://git.bitreport.pt/BitReport.pt/news-platform.git
Description
Scalable multi-domain sports news platform (frontend + WP bridge + SEO + LXC deploy)
4.6 MiB
0 Stars
32 Watchers
0 Forks
Languages
TypeScript
51.2%
Astro
38.9%
Shell
6.4%
CSS
2.2%
JavaScript
1.3%