You can now create named snapshots of a Vercel Drive . Each one is a read-only copy of the drive's contents at the moment you create it. Later writes to the drive don't change it. You can mount the snapshot in multiple sandboxes at once, or fork it into a new writable drive to continue from that point.
Until now, a drive snapshot lasted only as long as the sandbox that mounted it. drive.snapshot() still works that way.
With Vercel CLI 68.3.0 or later, run:
vercel drives snapshot workspace-cache baseline
vercel drives snapshots list workspace-cache
vercel drives snapshots fork baseline workspace-cache-restored --drive workspace-cache
Create, list, and fork named snapshots with the Vercel CLI.
Update @vercel/drives and @vercel/sandbox for TypeScript, or vercel-drives and vercel-sandbox for Python, then run:
Create, mount, and fork a named snapshot with the TypeScript SDK.
Each named snapshot is billed as drive storage for its used size until you delete it.…