Skip to main content

Sandboxes now expire based on last use

By Steven Van ·

Sandbox snapshot expiration now resets on every use, so shorter retention windows won't drop snapshots active workflows still need.

Vercel Sandbox snapshots now expire based on when they were last used, rather than when they were created. A snapshot's expiration timer resets every time it's used, so a snapshot that a workflow keeps returning to stays alive, while one nobody touches expires on its retention policy.

The change means shorter retention windows no longer risk a snapshot disappearing between sessions, which Vercel says makes it safer to build long-running workflows on top of Sandbox persistence. Snapshots still expire 30 days after last use by default, but that and other retention settings can be set with snapshotExpiration, as in the docs' example of a 7-day window.

Full details are in the changelog entry.

Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Read the original announcement →

Read Sandboxes now expire based on last use on Creators Toolbox