Vercel News

Vercel Sandbox now supports Secure Compute

8.5内容质量

TL;DR · AI 摘要

Vercel Sandbox 现在支持 Secure Compute,允许团队通过专用网络连接,提升安全性。

核心要点

  • 通过 CLI 命令可添加 network-id 参数实现沙箱网络绑定
  • 现有沙箱使用 sandbox.update() 方法可动态切换网络配置
  • Secure Compute 功能仅面向企业团队开放

结构提纲

按章节快速跳转。

  1. 介绍 Secure Compute 的网络连接能力及安全优势

  2. 展示通过 SDK 传递 networkId 参数的代码示例

  3. 说明命令行工具添加网络ID的语法格式

  4. 描述沙箱网络绑定的动态更新机制

  5. 明确该功能仅对企业团队开放的限制条件

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Vercel Sandbox Secure Compute
    • 功能特性
      • 专用网络连接
      • 静态IP出口
      • VPC对等连接
    • 集成方式
      • SDK配置
      • CLI命令
    • 使用限制
      • 企业团队专属

金句 / Highlights

值得收藏与分享的关键句。

#Vercel#前端#云计算#Secure Compute#Sandbox
打开原文

Vercel Sandbox 现在支持 Secure Compute - Vercel

Vercel Sandbox 现在支持 Secure Compute,可将沙箱连接到团队的专用网络。公共互联网流量通过网络的静态 IP 传出,沙箱可通过 VPC 对等连接访问 AWS VPC 中的私有资源。

您可以通过代码或 CLI 将沙箱连接到网络。

在代码中,创建沙箱时传入现有的 Secure Compute 网络 ID:

code
1
import
{
Sandbox
}
from
'@vercel/sandbox'
;
2
3
const
sandbox
=
await
Sandbox
.
create
(
{
4
networkId
:
'3k9x7m2p5q8w1z4n'
,
5
}
)
;

在 CLI 中,运行 sandbox create 命令时追加 --network-id 和您的网络 ID 值:

code
1
npx sandbox@latest create --network-id your_network_id_here

现有沙箱可通过 sandbox.update() 附加到新网络或更改网络。更改将在下一次会话中生效。正在运行的会话会保持当前网络,直到会话停止。

Secure Compute 功能仅对 Enterprise 团队开放。

了解更多请参阅 Sandbox 文档。

贡献者

Eric Dodds