fix: always rebuild frontend with correct VITE_API_BASE

This commit is contained in:
2026-03-15 12:48:12 +00:00
parent 1524891b2f
commit 4c45a57649

View File

@@ -58,6 +58,10 @@ echo "📦 Using compose file: $COMPOSE_FILE"
echo "🧹 Cleaning up previous containers..."
docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true
# Build frontend with correct API base URL
echo "🔨 Building frontend..."
docker compose -f "$COMPOSE_FILE" build --build-arg VITE_API_BASE=http://backend:8000 frontend
# Start services
echo "📦 Starting services..."
docker compose -f "$COMPOSE_FILE" up -d