#!/bin/sh set -e # Generate config.json from VITE_API_URL for development # This makes the dev environment behave the same as production CONFIG_FILE="/app/public/config.json" echo "🔧 Generating development config.json..." # Use VITE_API_URL from environment API_BASE_URL="${VITE_API_URL:-}" if [ -z "$API_BASE_URL" ]; then echo "⚠️ VITE_API_URL not set, creating minimal config" cat > "$CONFIG_FILE" < "$CONFIG_FILE" <