#!/bin/sh set -e # Inject runtime config from environment variables into the built SPA. # This file is written to /app/dist/config.js and loaded by index.html # BEFORE the Vite bundle — so window.__APP_CONFIG__ is available at startup. # # Add new config values here and in src/lib/api.ts Window interface. cat > /app/dist/config.js <