Menu

Sandboxes now expire based on last use - Vercel
📰

Sandboxes now expire based on last use - Vercel

Vercel News·Marc Codina Segura·about 22 hours ago
#1TUuPKba
#vercel#sandbox#snapshots#expire#last
Reading 0:00
15s threshold

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.