Skip to content

feat(vercel-sandbox): support new Snapshot.fromSandbox method#161

Draft
marc-vercel wants to merge 1 commit intonamed-sandboxesfrom
named-sandboxes-from-snapshot
Draft

feat(vercel-sandbox): support new Snapshot.fromSandbox method#161
marc-vercel wants to merge 1 commit intonamed-sandboxesfrom
named-sandboxes-from-snapshot

Conversation

@marc-vercel
Copy link
Copy Markdown
Collaborator

Support the new static method Snapshot.fromSandbox(...) to get the latest snapshot of a sandbox. Example:

const childSandbox = Sandbox.create({
  source: {
    type: 'snapshot',
    snapshotId: Snapshot.fromSandbox('main-sandbox')
  }
});

At the CLI level, is it with the parameter --sandbox-snapshot. It follows the same pattern as --snapshot. I do not think this is 100% clear and maybe we should iterate to sandbox create --from-snapshot and sandbox create --from-sandbox-snapshot?

For example:

> sandbox create --sandbox-snapshot main-sandbox

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 22, 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 Apr 27, 2026 4:15pm
sandbox-cli Ready Ready Preview, Comment, Open in v0 Apr 27, 2026 4:15pm
sandbox-sdk Ready Ready Preview, Comment, Open in v0 Apr 27, 2026 4:15pm
sandbox-sdk-ai-example Ready Ready Preview, Comment, Open in v0 Apr 27, 2026 4:15pm
workflow-code-runner Ready Ready Preview, Comment, Open in v0 Apr 27, 2026 4:15pm

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