This commit is contained in:
vet
2026-04-14 15:20:00 +07:00
parent 3332ec541a
commit 4ce37703b3
8 changed files with 192 additions and 27 deletions

View File

@@ -158,6 +158,10 @@ _start_fe() {
success "$name (PID=$(cat "$pidfile")) ${FE_PORT[$name]}$logfile"
if [[ "$name" == "pc" ]]; then
pc_check_wasm_assets "http://${DEPLOY_TEST_IP}:5173"
if [[ "${PC_BACKEND_ORIGIN:-}" == https://* ]]; then
pc_check_wasm_assets "${PC_BACKEND_ORIGIN}"
info " PC 浏览器入口建议使用: ${PC_BACKEND_ORIGIN%/}/HTTPS + COOP/COEP首次访问需接受自签名证书"
fi
fi
else
error "$name 启动失败,查看日志:"
@@ -198,6 +202,7 @@ if [[ "$TARGET" == "all" ]]; then
echo ""
echo -e "${BOLD}访问地址:${NC}"
echo " PC: http://${DEPLOY_TEST_IP}:5173 (默认 yarn dev:webElectron 用 PC_ELECTRON=1 或 pc 目录内 yarn dev)"
echo " PC HTTPS: https://${DEPLOY_TEST_IP}/ (OpenIM WASM DB worker 推荐入口;首次访问需接受自签名证书)"
echo " H5: http://${DEPLOY_TEST_IP}:3003"
echo " CMS: http://${DEPLOY_TEST_IP}:8001"
echo " Build CMS: http://${DEPLOY_TEST_IP}:8002"