





















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)}`);
Create a sandbox with port 8080 open
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。