Vercel Sandbox supports forking
Vercel Sandbox now supports forking via the Sandbox.fork() method, allowing you to create branches from a shared base sandbox that inherit configuration and environment variables. Forks take similar time and have the same limits as creating a new sandbox.
now supports forking with .Vercel SandboxSandbox.fork()
The fork starts from the source's current snapshot and inherits its config and environment variables. If the source is running, it forks the latest saved state, not the live in-memory state. If the source has no snapshot, it falls back to a fresh create, using the source's and config. Any parameter you pass overrides the inherited value.runtime
A fork takes about the same time as creating a sandbox, with the same limits. Use it to branch an agent from a shared base, give each tenant its own copy of a template, or run variations of one setup in parallel.
To fork a sandbox with the SDK:
To fork a sandbox with the CLI:
To get started, upgrade to the latest version:
Learn more in the Sandbox .documentation
pnpm install @vercel/sandbox@latest # SDKpnpm install -g sandbox@latest # CLI
Source: original entry ↗