the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Limit Cloudflare expose hostname to root domain

Strip subdomains and pass only the last two labels (domain and TLD)
to exposePort to avoid invalid hostnames.

+1 -1
+1 -1
apps/cf-sandbox/src/providers/cloudflare/index.ts
··· 123 123 async expose(port: number, hostname: string): Promise<string | null> { 124 124 try { 125 125 const { url } = await this.sandbox.exposePort(port, { 126 - hostname, 126 + hostname: hostname.split(".").slice(-2).join("."), 127 127 token: env.PREVIEW_TOKEN, 128 128 }); 129 129 return url;