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
12 lines
360 B
Bash
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
|