sandbox@4.1.0
Minor Changes
-
Add multi-region support: (#301)
- New
regionandfailoverRegionsoptions on sandbox create, fork, and update (SDK), with matching flags onsandbox create,fork,run,sh, and thesandbox config region/sandbox config failover-regionscommands (CLI). - New
failoverRegionsgetter onSandboxandregionsgetter onSnapshot. - Regions are now shown in
sandbox ls,sessions list,snapshots list/get,sandbox config list, and the create/fork summary.
- New
Patch Changes
-
Accept
nonefor--failover-regionsonsandbox create,sandbox runandsandbox fork. (#310)sandbox config failover-regions <name> nonealready clears the list, but at creation time
nonewas forwarded as a literal region name and rejected by the API. With a project-level
default failover list there was no way to create a sandbox in one of those regions from the
CLI, while the SDK and the HTTP API both accept an emptyfailoverRegionsarray.The
nonesentinel is now shared betweencreate/run/forkandconfig. -
Sandbox.regionandSandbox.failoverRegionsno longer returnundefined: the getters now report the platform defaults (iad1and[]) when the API omits the fields, so their types arestringandstring[]. The newDEFAULT_SANDBOX_REGIONexport makes the default region readable. (#301) -
Updated dependencies [
2997ecc32a77c145289fbbd89ae2dc0214767ae3,2997ecc32a77c145289fbbd89ae2dc0214767ae3,2023195eafe3199c2372f7dad8bfaf0878267c52]:- @vercel/sandbox@3.1.0