포트 8080이 이제 Vercel Sandboxes에서 사용 가능합니다
Source: Vercel Blog
포트 8080이 열려 있는 샌드박스 만들기
이 포트는 컨트롤러 포트로 사용되었으며, 이제는 포트 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)}`);