Skip to content
Dashboard

Sandboxes now expire based on last use

Marc Codina SeguraSoftware Engineer

Vercel Sandbox snapshots now expire based on when they were last used, not when they were created. Active snapshots stay alive as long as workflows depend on them, while unused snapshots expire on their retention policy.

// Now expires 7 days after last use
await Sandbox.update({
snapshotExpiration: 7 * 24 * 60 * 60 * 1000,
});

Every time a snapshot is used, its expiration timer resets. This lets you set shorter retention windows without worrying that a snapshot will disappear between sessions, making it safer to build long-running workflows on top of Sandbox persistence.

Learn more about Sandbox snapshots in the documentation.