Skip to content

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

Draft
erulkey wants to merge 2 commits into
mainfrom
elisabeth/secure-compute-sandboxes-reconstruction
Draft

feat(sdk): add Secure Compute network selection#275
erulkey wants to merge 2 commits 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 Ready Ready Preview, v0 Aug 10, 2026 2:47pm
sandbox-sdk-ai-example Ready Ready Preview Aug 10, 2026 2:47pm
workflow-code-runner Ready Ready Preview Aug 10, 2026 2:47pm

Request Review

…ute-sandboxes-reconstruction

# Conflicts:
#	packages/vercel-sandbox/src/api-client/api-client.test.ts
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

You must have Developer access to commit code to Vercel Labs on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes.

Learn more: https://vercel.com/docs/accounts/team-members-and-roles/access-roles#team-level-roles

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