Menu

Port 8080 is now available in Vercel Sandboxes - Vercel
📰
0

Port 8080 is now available in Vercel Sandboxes - Vercel

Vercel News·Marc Codina Segura·3 days ago
#2jSUiq7V
#vercel#sandbox#port#await#create#used
Reading 0:00
15s threshold

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

Read More