Add live reload on changes

This commit is contained in:
khalid@traclabs.com
2026-04-23 08:04:34 -05:00
parent 233fb6d003
commit 36fadf710d
9 changed files with 153 additions and 3 deletions

View File

@@ -13,6 +13,18 @@ IDEMPOTENCY_DB_PATH=./data/dynamic-sites.db
# SSR cache
SITE_DATA_TTL_MS=500
# Browser live reload (optional)
# When enabled, the orchestrator (port 3001) hosts a websocket endpoint that broadcasts
# a reload event whenever content is written. Pages that opt-in will reload on message.
LIVE_RELOAD_WS_ENABLED=false
LIVE_RELOAD_WS_PATH=/__live_reload
# These are read by the Astro app (public envs are embedded client-side)
PUBLIC_LIVE_RELOAD_WS_ENABLED=false
PUBLIC_LIVE_RELOAD_WS_PATH=/__live_reload
# Optional override for deployments behind a reverse proxy:
# PUBLIC_LIVE_RELOAD_WS_URL=wss://your-domain.example/__live_reload
PUBLIC_LIVE_RELOAD_WS_URL=
# SMS (Vonage)
VONAGE_API_KEY=your_vonage_api_key
VONAGE_API_SECRET=your_vonage_api_secret