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 to keep storage in check.
await Sandbox.update({ snapshotExpiration: 7 * 24 * 60 * 60 * 1000, // Now expires 7 days after last use});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.