getSnapshot()v4.0.425
Retrieves a cached snapshot ID from Vercel Blob storage. Returns null if no snapshot is found or if not running on Vercel.
Used internally by getOrCreateSandbox() to check for a cached sandbox.
Example
const snapshotId = await getSnapshot ();
if (snapshotId ) {
console .log (`Found cached snapshot: ${snapshotId }`);
}Arguments
None.
Return value
string | null - The cached snapshot ID, or null if not found.