Skip to content

feat(sdk): add Secure Compute network selection - #275

Draft
erulkey wants to merge 1 commit into
mainfrom
elisabeth/secure-compute-sandboxes-reconstruction
Draft

feat(sdk): add Secure Compute network selection#275
erulkey wants to merge 1 commit into
mainfrom
elisabeth/secure-compute-sandboxes-reconstruction

Conversation

@erulkey

@erulkey erulkey commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Why

  • POST /v2/sandboxes now accepts networkId: string | null (explicit network, explicit opt-out) and applies a project-level Secure Compute default when the field is omitted. The SDK needs to expose that intent.

What

  • Adds networkId?: string | null to Sandbox.create() params and forwards it through APIClient.createSandbox. Omitted means inherit the project default; null means create without Secure Compute.
  • Minor changeset for @vercel/sandbox.

Validation

  • Client tests assert an explicit string and an explicit null are serialized into the request body, and that the key is absent when the option is omitted (so the API can apply the project default).

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
sandbox-sdk-ai-example Ready Ready Preview Aug 5, 2026 2:29pm
workflow-code-runner Ready Ready Preview Aug 5, 2026 2:29pm

Request Review

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.

1 participant