Vercel Sandbox 2.0.0-beta.24

2.0.0-beta.24Pre-release
Added 2
  • Add Sandbox.fork(...) to the SDK and sandbox fork <source> to the CLI for forking an existing sandbox into a new one
  • Fork copies config parameters resources (vcpus), timeout, networkPolicy, tags, ports, persistent, snapshotExpiration, keepLastSnapshots and allows the caller to override any of them
Changed 1
  • Raw snapshot IDs are now supported via sandbox create --snapshot <id> and Sandbox.create({ source: { type: "snapshot", snapshotId } })
Removed 1
  • Remove sandbox create --sandbox-snapshot <name> and Snapshot.fromSandbox(name), use sandbox fork <name> / Sandbox.fork({ sourceSandbox: name }) instead

From Vercel Sandbox

Minor Changes
  • Add Sandbox.fork(...) to the SDK and sandbox fork <source> to the CLI for forking an existing sandbox into a new one. The fork copies as many config parameters as the server exposes — resources (vcpus), timeout, networkPolicy, tags, ports, persistent, snapshotExpiration, keepLastSnapshots — and lets the caller override any of them. Environment variables are not copied (encrypted server-side) and must be re-supplied via env / --env. (#205)

    Breaking: removed sandbox create --sandbox-snapshot <name> and Snapshot.fromSandbox(name). Use sandbox fork <name> / Sandbox.fork({ sourceSandbox: name }) instead. Raw snapshot IDs are still supported via sandbox create --snapshot <id> and Sandbox.create({ source: { type: "snapshot", snapshotId } }).

View original

Upgraded? How did it go?

Discussion