diff --git a/run-test-frontend.sh b/run-test-frontend.sh index 99c5efc..7a05dcf 100755 --- a/run-test-frontend.sh +++ b/run-test-frontend.sh @@ -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