Executive Summary
Vercel has updated its Sandbox feature, allowing developers to set custom expiration dates for their environment snapshots. This enhancement replaces the previous fixed 7-day limit with a more flexible system, featuring a new default expiration of 30 days. Developers can now configure snapshot lifespans from one day to infinity using either the Vercel CLI or the Sandbox SDK.
Key Takeaways
* Custom Expiration: The rigid 7-day expiration limit for snapshots has been removed.
* New Default: If not specified, snapshots now default to a 30-day expiration period, up from the previous 7 days.
* Flexible Range: Expiration can be set for any duration from 1 day up to a non-expiring (infinite) state.
* Dual Configuration: The feature is configurable via both the command-line interface (e.g., `--expiration 14d`) and the Sandbox SDK (e.g., `{ expiration: ms('1d') }`).
Strategic Importance
This update provides developers with significantly more control and flexibility over their development artifacts, accommodating a wider range of use cases from temporary testing to long-term environment preservation.