Skip to content

feat(dynamic ports): support dynamic update of sandbox ports#184

Merged
valerian-roche merged 2 commits into
named-sandboxesfrom
vr/dynamic-ports
May 12, 2026
Merged

feat(dynamic ports): support dynamic update of sandbox ports#184
valerian-roche merged 2 commits into
named-sandboxesfrom
vr/dynamic-ports

Conversation

@valerian-roche
Copy link
Copy Markdown
Contributor

Users are currently required to provide the exact list of ports they will use when creating their sandbox. This can be constraining, and we received requests to support dynamically adding or removing ports on a running sandbox (akin to the network policy model)
This PR adds support for the latest sandbox update API extension for ports. Users can provide a new list of ports to expose (as a full state). New ports will become exposed and ones no longer presents will be deregistered from the sandbox.
The port number limit (currently 15) remains applicable

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sandbox Ready Ready Preview, Comment, Open in v0 May 12, 2026 3:25pm
sandbox-cli Ready Ready Preview, Comment, Open in v0 May 12, 2026 3:25pm
sandbox-sdk Ready Ready Preview, Comment, Open in v0 May 12, 2026 3:25pm
sandbox-sdk-ai-example Ready Ready Preview, Comment, Open in v0 May 12, 2026 3:25pm
workflow-code-runner Ready Ready Preview, Comment, Open in v0 May 12, 2026 3:25pm

Comment thread packages/vercel-sandbox/src/sandbox.ts Outdated
@valerian-roche valerian-roche merged commit d1216d1 into named-sandboxes May 12, 2026
14 checks passed
@valerian-roche valerian-roche deleted the vr/dynamic-ports branch May 12, 2026 16:34
@github-actions github-actions Bot mentioned this pull request May 12, 2026
LukeSheard pushed a commit that referenced this pull request May 13, 2026
Users are currently required to provide the exact list of ports they
will use when creating their sandbox. This can be constraining, and we
received requests to support dynamically adding or removing ports on a
running sandbox (akin to the network policy model)
This PR adds support for the latest `sandbox update` API extension for
ports. Users can provide a new list of ports to expose (as a full
state). New ports will become exposed and ones no longer presents will
be deregistered from the sandbox.
The port number limit (currently 15) remains applicable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants