Menu

Automatic persistence now in beta on Vercel Sandbox - Vercel
📰
0

Automatic persistence now in beta on Vercel Sandbox - Vercel

Vercel News·Marc Codina Segura·4 days ago
#Pwo3R37z
#vercel#sandbox#await#user#name#beta
Reading 0:00
15s threshold

Vercel Sandboxes can now automatically save their filesystem state when stopped and restore it when resumed. This removes the need for manual snapshots, making it easier to run long-running, durable sandboxes that continue where you left off. Link to heading How it works A sandbox is the durable identity, now identified by a name , its filesystem state, and configuration options. A session is the compute tied to that state, invoked as needed. Automatic persistence introduces orchestration that separates storage from compute, reducing the need for manual snapshotting, so: when you stop a sandbox, the session shuts down but the filesystem is automatically snapshotted. when you resume, a new session boots from that snapshot. This state storage is not charged, so you pay when your setting is active. import { Sandbox } from '@vercel/sandbox' ; // Create a named sandbox const sandbox = await Sandbox . create ( { name : 'user-a-workspace' } ) ; await sandbox . runCommand ( 'npm' , [ 'install' ] ) ; await sandbox .…

Continue reading — create a free account

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

Read More