3.1.0-beta.1Pre-release
Added 9
- Add multi-region support for drives with region field when creating a new drive and --region flag in the CLI
- Add region getter on the Drive class to retrieve the region of a drive
- Add constraint that drives can only be mounted to sandboxes running on the same region
- Add region and failoverRegions options on sandbox create, fork, and update in SDK
- Add matching --region and --failover-regions flags in CLI for sandbox create, fork, run, sh commands
- Add sandbox config region and sandbox config failover-regions CLI commands
- Add failoverRegions getter on Sandbox class
- Add regions getter on Snapshot class
- Add DEFAULT_SANDBOX_REGION export to make the default region readable
Changed 2
- Display regions in sandbox ls, sessions list, snapshots list/get, sandbox config list, and the create/fork summary
- Sandbox.region and Sandbox.failoverRegions no longer return undefined and now report platform defaults (iad1 and []) when the API omits the fields
Fixed 1
- Update defineSandboxProxy to limit the JWKS issuer cache size to prevent unbounded memory usage
From Vercel Sandbox
Minor Changes
-
Add multi-region support for drives: (#307)
- Set the
regionfield when creating a new drive, or use the--regionflag in the CLI. - You can retrieve the region of a drive using the
regiongetter on theDriveclass. - Drives can be only be mounted to sandboxes running on the same region.
- Set the
-
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
-
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)
Patch Changes
- Update
defineSandboxProxyto limit the JWKS issuer cache size to prevent unbounded memory usage. (#309)