feat(aihr): finalize practice growth and access boundaries

This commit is contained in:
2026-07-25 00:42:19 +08:00
parent a90f40e4d8
commit c9d2012ec1
87 changed files with 6804 additions and 2538 deletions
+11 -2
View File
@@ -244,12 +244,21 @@ else
fi
PIDS+=("$!")
./scripts/dev-frontend.sh &
BACKEND_PROXY_TARGET=""
if using_portless_backend; then
for _ in {1..20}; do
BACKEND_PROXY_TARGET="$(portless get wygj-api 2>/dev/null || true)"
[[ -n "$BACKEND_PROXY_TARGET" ]] && break
sleep 0.1
done
fi
VITE_APP_PROXY_TARGET="${VITE_APP_PROXY_TARGET:-$BACKEND_PROXY_TARGET}" ./scripts/dev-frontend.sh &
PIDS+=("$!")
if using_portless_mobile; then
portless alias --remove wygj-mobile-uni >/dev/null 2>&1 || true
VITE_PROXY_TARGET="${VITE_PROXY_TARGET:-https://wygj-api.localhost}" portless run --name wygj-mobile-uni --force npm --prefix mobile-uni run dev &
VITE_PROXY_TARGET="${VITE_PROXY_TARGET:-$BACKEND_PROXY_TARGET}" portless run --name wygj-mobile-uni --force npm --prefix mobile-uni run dev &
else
./scripts/dev-mobile.sh &
fi