Skip to main content

saveSnapshot()v4.0.425

Saves a snapshot ID to Vercel Blob storage, keyed by the current VERCEL_DEPLOYMENT_ID. This allows getOrCreateSandbox() to restore the sandbox in production without re-creating it.

Example

await saveSnapshot({snapshotId: 'snap_abc123'});

Arguments

An object with the following properties:

snapshotId

The snapshot ID returned by createSnapshot().

Return value

void. Throws if the upload to Vercel Blob fails.

See also