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
20 lines
739 B
Bash
20 lines
739 B
Bash
# Astro SSR Frontend environment
|
|
# Deploy to /etc/news-platform/frontend.env on the LXC
|
|
# Values are deployment-specific; secrets in vault
|
|
|
|
HOST=0.0.0.0
|
|
PORT=4321
|
|
|
|
# Bridge API base URL — used by Astro SSR when BRIDGE_INTERNAL_URL is not set.
|
|
BRIDGE_API_URL=http://127.0.0.1:3200
|
|
|
|
# Domain JSON directory (SSR must resolve andebol.net vs newsproject — BIT-25555)
|
|
DOMAINS_CONFIG_PATH=/opt/news-platform/config/domains
|
|
|
|
# Direct loopback override for bridge calls. Set this when the CT cannot resolve the
|
|
# public hostname (e.g. andebol.net) back to itself via DNS. Overrides nginx-routed calls.
|
|
BRIDGE_INTERNAL_URL=http://127.0.0.1:3200
|
|
|
|
# Site domain (used for canonical URLs, sitemaps, etc.)
|
|
SITE_URL=https://newsproject.bitreport.pt
|