feat(sdk,cli): multi-region support for drives - #307
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
QuiiBz
commented
Aug 20, 2026
| * The region where the drive data is stored. | ||
| */ | ||
| public get region(): string { | ||
| return this.drive.region ?? DEFAULT_SANDBOX_REGION; |
Member
Author
There was a problem hiding this comment.
Defaulting to DEFAULT_SANDBOX_REGION in case it was stored without it in a workflow step
AndyW22
approved these changes
Aug 20, 2026
Merged
marc-vercel
pushed a commit
that referenced
this pull request
Aug 21, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to drives-beta, this PR will be updated.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `drives-beta` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `drives-beta`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## sandbox@4.1.0-beta.1 ### Minor Changes - Add multi-region support for drives: ([#307](#307)) - Set the `region` field when creating a new drive, or use the `--region` flag in the CLI. - You can retrieve the region of a drive using the `region` getter on the `Drive` class. - Drives can be only be mounted to sandboxes running on the same region. - Add multi-region support: ([#301](#301)) - New `region` and `failoverRegions` options on sandbox create, fork, and update (SDK), with matching flags on `sandbox create`, `fork`, `run`, `sh`, and the `sandbox config region` / `sandbox config failover-regions` commands (CLI). - New `failoverRegions` getter on `Sandbox` and `regions` getter on `Snapshot`. - Regions are now shown in `sandbox ls`, `sessions list`, `snapshots list`/`get`, `sandbox config list`, and the create/fork summary. ### Patch Changes - `Sandbox.region` and `Sandbox.failoverRegions` no longer return `undefined`: the getters now report the platform defaults (`iad1` and `[]`) when the API omits the fields, so their types are `string` and `string[]`. The new `DEFAULT_SANDBOX_REGION` export makes the default region readable. ([#301](#301)) - Updated dependencies [[`c2b5d7b45340b485264abb82f0cd640ed4e93293`](c2b5d7b), [`2997ecc32a77c145289fbbd89ae2dc0214767ae3`](2997ecc), [`2997ecc32a77c145289fbbd89ae2dc0214767ae3`](2997ecc), [`2023195eafe3199c2372f7dad8bfaf0878267c52`](2023195)]: - @vercel/sandbox@3.1.0-beta.1 ## @vercel/sandbox@3.1.0-beta.1 ### Minor Changes - Add multi-region support for drives: ([#307](#307)) - Set the `region` field when creating a new drive, or use the `--region` flag in the CLI. - You can retrieve the region of a drive using the `region` getter on the `Drive` class. - Drives can be only be mounted to sandboxes running on the same region. - Add multi-region support: ([#301](#301)) - New `region` and `failoverRegions` options on sandbox create, fork, and update (SDK), with matching flags on `sandbox create`, `fork`, `run`, `sh`, and the `sandbox config region` / `sandbox config failover-regions` commands (CLI). - New `failoverRegions` getter on `Sandbox` and `regions` getter on `Snapshot`. - Regions are now shown 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`: the getters now report the platform defaults (`iad1` and `[]`) when the API omits the fields, so their types are `string` and `string[]`. The new `DEFAULT_SANDBOX_REGION` export makes the default region readable. ([#301](#301)) ### Patch Changes - Update `defineSandboxProxy` to limit the JWKS issuer cache size to prevent unbounded memory usage. ([#309](#309)) ## @vercel/sandbox-mock@3.1.0-beta.1 ### Minor Changes - Add multi-region support: ([#301](#301)) - New `region` and `failoverRegions` options on sandbox create, fork, and update (SDK), with matching flags on `sandbox create`, `fork`, `run`, `sh`, and the `sandbox config region` / `sandbox config failover-regions` commands (CLI). - New `failoverRegions` getter on `Sandbox` and `regions` getter on `Snapshot`. - Regions are now shown 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`: the getters now report the platform defaults (`iad1` and `[]`) when the API omits the fields, so their types are `string` and `string[]`. The new `DEFAULT_SANDBOX_REGION` export makes the default region readable. ([#301](#301)) ### Patch Changes - Add mock for the `Drive` class. ([#307](#307)) - Updated dependencies [[`c2b5d7b45340b485264abb82f0cd640ed4e93293`](c2b5d7b), [`2997ecc32a77c145289fbbd89ae2dc0214767ae3`](2997ecc), [`2997ecc32a77c145289fbbd89ae2dc0214767ae3`](2997ecc), [`2023195eafe3199c2372f7dad8bfaf0878267c52`](2023195)]: - @vercel/sandbox@3.1.0-beta.1 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following #301, this PR adds support for multi-region in drives
regionfield when creating a new drive, or use the--regionflag in the CLIregiongetter on theDriveclassAlso adding the missing mock for the
Driveclass in@vercel/sandbox-mock