fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555) #24

Merged
spark merged 2 commits from task/BIT-25555-andebol-fixes into main 2026-06-18 11:45:02 +01:00
2 Commits
Author SHA1 Message Date
José AlvesandPaperclip 80ec057745 ci: retrigger tests (BIT-25555)
Tests / frontend lib tests (push) Failing after 11s
Tests / writer-pipeline tests (push) Successful in 28s
Tests / bridge tests (push) Successful in 30s
Tests / writer-pipeline tests (pull_request) Successful in 33s
Tests / bridge tests (pull_request) Successful in 29s
Tests / frontend lib tests (pull_request) Successful in 30s
Co-Authored-By: Paperclip <[email protected]>
2026-06-18 10:43:05 +00:00
José Alves 919153aaf7 fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555)
Tests / frontend lib tests (push) Failing after 9s
Tests / writer-pipeline tests (push) Successful in 26s
Tests / bridge tests (push) Successful in 28s
Tests / bridge tests (pull_request) Failing after 7s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / frontend lib tests (pull_request) Successful in 29s
Root cause: DOMAINS_CONFIG_PATH was missing from the frontend env so
getDomainConfig('andebol.net') fell through to the English fallback.

Fixes applied:
- deploy/systemd/frontend.env.example: add DOMAINS_CONFIG_PATH and
  BRIDGE_INTERNAL_URL so Astro SSR resolves domain JSON on the CT
- bridge/src/lib/request-host.ts: drop X-Site-Host; resolve site domain
  from the HTTP Host header which nginx already preserves ($host)
- frontend/src/lib/bridge.ts: multi-domain SWR cache keys; nginx-routed
  bridge calls via public hostname with BRIDGE_INTERNAL_URL loopback
  override for CT environments where public DNS does not resolve locally
- config/writers/f0251a61: restrict Nelson Alves topics to Andebol only
  (remove Futebol / Desportos — BIT-22288 intent)
- frontend: overhauled article page (hero image, masthead, sidebar,
  share bar), rich related-articles grid, improved LatestGrid institutional
  theme, FpaAgendaSection rewrite, ui-i18n PT strings completed
2026-06-18 10:09:35 +00:00