每个地区,每个代理商都有一台电脑
A computer for every agent, in every region
Guillermo RauchAI2026-09-10
Vercel沙箱现在可以在所有20个Vercel计算区域运行,比之前增加了一倍。将沙箱运行在接近数据库、存储和其他它们访问的服务附近,可以降低延迟。团队还可以将沙箱工作负载保留在批准的区域,以支持数据驻留和区域处理需求。iad1仍然是默认区域。区域选择在每个计划中都可用。专业和企业团队还可以配置故障转移区域。如果Vercel无法在主区域创建沙箱,它将按照顺序尝试每个配置的故障转移区域。有数据驻留需求的团队可以将主区域和故障转移区域限制在批准的地理区域内。从项目的设置>沙箱中为新沙箱设置默认区域。使用SDK:1import { Sandbox } from '@vercel/sandbox';2 3const sandbox = await Sandbox.create({4 name: 'my-sandbox',5 region: 'syd1',6 failoverRegions: ['hkg1', 'sin1'],7});使用SDK在悉尼创建一个沙箱,以香港和新加坡作为故障转移区域。使用CLI:sandbox create --name my-sandbox --region syd1 --failover-regions hkg1,sin1使用CLI在悉尼创建一个沙箱,以香港和新加坡作为故障转移区域。在创建时传递的区域将覆盖项目默认设置。现有沙箱将保留在它们创建的区域。活跃CPU和预配内存速率因区域而异。请参阅沙箱定价。如果您使用沙箱SDK或CLI,请在选择新支持的区域之前将其更新到最新版本。在沙箱区域文档中了解区域选择、故障转移和CLI配置。贡献者:Amelia Charles
原文
Vercel Sandbox can now run in all 20 Vercel compute regions, up from four. Running sandboxes closer to the databases, storage, and other services they access reduces latency. Teams can also keep sandbox workloads in approved regions to support data residency and regional processing requirements.iad1 remains the default region. Region selection is available on every plan. Pro and Enterprise teams can also configure failover regions. If Vercel can't create a sandbox in the primary region, it tries each configured failover region in order. Teams with data residency requirements can limit primary and failover regions to approved geographies.Set a default region for new sandboxes from your project's Settings > Sandboxes. With the SDK: 1import { Sandbox } from '@vercel/sandbox';2 3const sandbox = await Sandbox.create({4 name: 'my-sandbox',5 region: 'syd1',6 failoverRegions: ['hkg1', 'sin1'],7});Create a sandbox in Sydney with Hong Kong and Singapore as failover regions using the SDK.With the CLI: sandbox create --name my-sandbox --region syd1 --failover-regions hkg1,sin1Create a sandbox in Sydney with Hong Kong and Singapore as failover regions using the CLI.A region passed at creation overrides the project default. Existing sandboxes remain in the regions where they were created.Active CPU and Provisioned Memory rates vary by region. See Sandbox pricing.If you use the Sandbox SDK or CLI, update it to the latest version before selecting one of the newly supported regions. Learn about region selection, failover, and CLI configuration in the Sandbox regions documentation.ContributorsAmelia Charles