Skip to content
Dashboard

Vercel Sandbox snapshots now allow custom retention periods

import { Sandbox } from '@vercel/sandbox';
import ms from 'ms';
const sandbox = Sandbox.create();
sandbox.snapshot({ expiration: ms('1d') })

# Create a snapshot of a running sandbox
sandbox snapshot sb_1234567890 --stop
# Create a snapshot that expires in 14 days
sandbox snapshot sb_1234567890 --stop --expiration 14d
# Create a snapshot that never expires
sandbox snapshot sb_1234567890 --stop --expiration 0

Ready to deploy?