精选75Cloudflare Sandbox SDK(GitHub Releases)云与平台
Cloudflare Sandbox SDK v0.10.2:新增
@cloudflare/[email protected]
Patch Changes
- #695 c6bf7dc Thanks @aron-cf! - Add sandbox.tunnels namespace with quick-tunnel support. Call sandbox.tunnels.get(port) to obtain a https://<words>.trycloudflare.com URL that proxies to localhost:<port> inside the sandbox. The call is idempotent: repeated calls for the same port return the same record from per-sandbox Durable Object storage. No Cloudflare account or DNS setup required.
代码 · 7 行
const tunnel = await sandbox.tunnels.get(8080);
console.log(tunnel.url);
// → https://random-words-here.trycloudflare.com
const same = await sandbox.tunnels.get(8080);
console.log(same.url === tunnel.url); // true
await sandbox.tunnels.list();
await sandbox.tunnels.destroy(8080); // or destroy(tunnel)- #691 3ca24fc Thanks @scuffi! - Add credential-less R2 bucket mounting via egress interception
- #703 68c8b71 Thanks @aron-cf! - Fix inconsistencies in the sandbox.desktop interface between RPC and HTTP transports
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力