Sandbox Regions
Sandboxes use your project's default sandbox region unless the creation request overrides it. Choose a project default close to your data sources, such as databases or object storage, to reduce latency.
Vercel Sandbox is available in 19 regions:
Region Code | Region Name | Reference Location |
|---|---|---|
| arn1 | eu-north-1 | Stockholm, Sweden |
| bom1 | ap-south-1 | Mumbai, India |
| cdg1 | eu-west-3 | Paris, France |
| cle1 | us-east-2 | Cleveland, USA |
| cpt1 | af-south-1 | Cape Town, South Africa |
| dub1 | eu-west-1 | Dublin, Ireland |
| fra1 | eu-central-1 | Frankfurt, Germany |
| gru1 | sa-east-1 | São Paulo, Brazil |
| hkg1 | ap-east-1 | Hong Kong |
| hnd1 | ap-northeast-1 | Tokyo, Japan |
| iad1 | us-east-1 | Washington, D.C., USA |
| icn1 | ap-northeast-2 | Seoul, South Korea |
| kix1 | ap-northeast-3 | Osaka, Japan |
| lhr1 | eu-west-2 | London, United Kingdom |
| pdx1 | us-west-2 | Portland, USA |
| sfo1 | us-west-1 | San Francisco, USA |
| sin1 | ap-southeast-1 | Singapore |
| syd1 | ap-southeast-2 | Sydney, Australia |
| yul1 | ca-central-1 | Montréal, Canada |
The default region is iad1.
When you create a sandbox, Vercel resolves the region in this order:
- The
regionin the sandbox creation request. - Your project's default sandbox region, configured in the project settings.
iad1when neither the request nor project specifies a region.
Sandboxes that mount drives have different placement requirements.
To override the project default for a specific sandbox, pass region when you create it:
sandbox create --name my-sandbox --region sfo1
The CLI --region option is also available on sandbox run and sandbox fork.
Read the region of an existing sandbox with the sandbox.region accessor in the SDK, or from the REGION column of sandbox list in the CLI.
To change the region for all sandboxes a project creates, without passing region on every call:
- From the Vercel dashboard, select your project and go to Settings, then Sandboxes.
- Under Sandbox Regions, select the main region.
- Select Save.
You can also set the project defaults with Vercel CLI (this is the vercel CLI, not the sandbox CLI):
# Set the default region and failover regions for the project
vercel project update my-project --sandbox-region sfo1 --sandbox-failover-regions cle1,iad1
# Clear them
vercel project update my-project --sandbox-region "" --sandbox-failover-regions ""To view a project's configured sandbox regions, run vercel project inspect my-project and check the Sandbox section.
New sandboxes use the project default when the creation request doesn't include a region, except when mounting drives. Existing sandboxes keep the region they were created in.
Failover regions are available on Enterprise and Pro plans
Failover regions let sandbox creation succeed even when the main region is unavailable. When Vercel can't provision capacity in the main region, it tries the failover regions in order of proximity to the main region, starting with the closest. The order in which you list them does not matter.
A snapshot or drive doesn't need to be available in a failover region for failover to work. Vercel loads it across regions for you, as described in Regions and snapshots and Regions and drives.
Teams on the Hobby plan or a Pro trial can set the main region, but can't configure or use failover regions. Requests that include failover regions fail with a payment_required error. If your team moves to the Hobby plan, Vercel ignores previously configured failover regions when creating sandboxes.
Pass failover regions when creating a sandbox, or set them as a project default in the same Sandbox Regions settings section:
sandbox create --name my-sandbox --region iad1 --failover-regions cle1,sfo1
Failover regions must not include the sandbox's main region. You can replace or remove the configured failover regions for an existing sandbox. Changes apply to its next session.
A snapshot is stored in the region of the sandbox it was created from. You can only create or resume a sandbox from a snapshot in a region where that snapshot is available. Creating a sandbox from a snapshot in another region fails with a snapshot_region_mismatch error.
This applies to persistent sandboxes too: a persistent sandbox resumes from its latest snapshot, so that snapshot must be available in the sandbox's region.
The same rule applies to forks. A fork inherits the source sandbox's region unless the fork request includes a region override. If the source has a snapshot, that snapshot must be available in the target region.
Snapshots can't be moved between regions. To run an environment in another region, create a new sandbox in that region, run your setup again, and snapshot it there.
Read the regions where a snapshot is available with the snapshot.regions accessor in the SDK, or from the REGIONS column of sandbox snapshots list in the CLI.
A drive stores its data in a single region. The Sandbox API creates new drives in iad1 when the request doesn't specify a region. The project's default sandbox region doesn't set a drive's region.
To create a drive in another region, pass region when you create it:
sandbox drives get-or-create workspace-cache --region sfo1
A drive's region can't change after creation, and drives can't be moved between regions. Requesting an existing drive with a different region fails with a conflict error. Drive forks inherit the source drive's region.
A sandbox's main region must match a drive's region. Otherwise, creation will fail with a drive_region_mismatch error. Sandboxes that failover to another region will still load their drives, but latency from reads will be higher.
The project default region is not applied to sandboxes that mount drives. Set the sandbox's region to match the drive's region when it's not iad1.
Read the region of an existing drive with the drive.region accessor in the SDK, or from the REGION column of sandbox drives list in the CLI.
Active CPU, Provisioned Memory, Sandbox Data Transfer, and Drive rates vary by region. See Regional pricing for the rates in each region. Sandbox Creations and Snapshot Storage are billed at the same rate in all regions where Sandbox is available.
- Snapshots: Save and restore sandbox state.
- Drives: Attach persistent storage to sandboxes.
- Pricing and Quotas: Snapshot storage rates and sandbox quotas.
- JS SDK Reference: The
regionandfailoverRegionsparameters. - Python SDK Reference: The
regionandfailover_regionsparameters. - CLI Reference: The
--regionand--failover-regionsoptions.
Was this helpful?