From 4c45a57649db2e1cbc0a2f6dd708fd74bd505be9 Mon Sep 17 00:00:00 2001 From: river Date: Sun, 15 Mar 2026 12:48:12 +0000 Subject: [PATCH] fix: always rebuild frontend with correct VITE_API_BASE --- run-test-frontend.sh | 4 ++++ 1 file changed, 4 insertions(+) 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