#!/usr/bin/env bash set -euo pipefail if ! command -v cloudflared >/dev/null 2>&1; then echo "cloudflared is not installed." echo "macOS: brew install cloudflared" exit 1 fi echo "Starting temporary public HTTPS tunnel to local engine..." echo "Keep this terminal open. Open the generated https:// URL on iPhone or put it in HF Space as LOCAL_ENGINE_URL." cloudflared tunnel --url http://localhost:8000