#!/bin/bash set -e echo "🔄 Rebuilding Frontend with fixed image URLs" echo "=============================================" # Load environment variables if [ -f .env.development ]; then export $(cat .env.development | grep -v '^#' | xargs) else echo "❌ Error: .env.development file not found!" exit 1 fi echo "🏗️ Rebuilding frontend..." docker compose -f docker-compose.development.yml build frontend echo "🔄 Restarting frontend..." docker compose -f docker-compose.development.yml restart frontend echo "⏳ Waiting for frontend to be ready..." sleep 10 echo "✅ Frontend rebuild completed!" echo "" echo "🌐 Test URLs:" echo " Frontend: http://$HOST_IP:3000" echo " Backend API: http://$HOST_IP:3001/api" echo "" echo "🔍 Debug images:" echo " ./debug-images.sh"