Menu

Drives for Vercel Sandbox in Private Beta - Vercel
📰

Drives for Vercel Sandbox in Private Beta - Vercel

Vercel News·Joe Haddad·6 days ago
#owhSGPnf
#vercel#sandbox#drive#beta#drives
Reading 0:00
15s threshold

Vercel Sandbox now supports drives in private beta. Drives are persistent, attachable storage with a lifecycle independent from any sandbox.

Create a drive once, then mount it at a configurable path when starting a sandbox. When the sandbox stops, the drive remains available to attach to a later sandbox.

Install the beta SDK ( @vercel/sandbox@beta ) or beta CLI ( sandbox@beta ), then create and mount a drive:

import { Drive , Sandbox } from "@vercel/sandbox" ;

const drive = await Drive . getOrCreate ( {

name : "agent-workspace" ,

} ) ;

const sandbox = await Sandbox . create ( {

mounts : {

"/workspace" : {

drive : drive . name ,

mode : "read-write" ,

} ,

} ,

} ) ;

Sandbox Drives are useful for:

Keeping agent workspaces across disposable sandboxes

Retaining cloned repositories, dependencies, and build outputs

Managing data independently from the sandbox lifecycle

During the private beta, a drive can be mounted read-write by one sandbox at a time.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.