Files
news-platform/frontend/.env.example
Artur Moreira 9a4c144f27 fix(frontend): block production SSR from using mock bridge content
When the Astro server could not reach the bridge health endpoint, the
code fell back to MockBridgeClient, which serves English placeholder
articles and a fictional author name. That was indexed and shown on
andebol.net (BIT-738).

Introduce resolveSsrBridge() so production never uses the mock; allow
BRIDGE_INTERNAL_URL to override the domain JSON endpoint for real
deploy topology; adjust pages and sitemap accordingly.

Made-with: Cursor
2026-04-02 19:57:45 +00:00

12 lines
360 B
Bash

# News Platform Frontend — Environment variables
# Copy to .env and adjust for local development
# SSR: URL where the Node server can reach the bridge (override domain JSON, e.g. loopback in prod).
# BRIDGE_INTERNAL_URL=http://bridge:3200
# Port (default: 4321)
PORT=4321
# Host to bind (default: 0.0.0.0 for production, localhost for dev)
HOST=localhost