Port 8080 is now available in Vercel Sandboxes
Source: Vercel Blog
Create a sandbox with port 8080 open
This port was used as a controller port, and that has now moved to port 23456.
import { Sandbox } from "@vercel/sandbox";
const sandbox = await Sandbox.create({
ports: [8080],
});
await sandbox.runCommand({
cmd: "python3",
args: ["-m", "http.server", "8080", "--bind", "0.0.0.0"],
detached: true,
});
console.log(`url: ${sandbox.domain(8080)}`);