#!/usr/bin/env bash
set -euo pipefail
PORT=8765

if ! command -v cloudflared &> /dev/null; then
  echo "Error: cloudflared is not installed or not in PATH." >&2
  exit 1
fi

echo "Starting ephemeral TryCloudflare tunnel for port $PORT..."
cloudflared tunnel --url http://localhost:$PORT
