fix: always rebuild frontend with correct VITE_API_BASE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user