Vercel News

Vercel Agent now installs private packages from npm and custom registries

6.4内容质量

TL;DR · AI 摘要

Vercel Agent now installs private packages from npm and custom registries - Vercel Vercel Agent can install private depe...

核心要点

  • 主题聚焦:Vercel Agent now installs private packages from
  • 来源:Vercel News,建议结合原文判断细节。
  • AI 分析暂不可用,本条为保底评分与摘要。
#AI#安全
打开原文

Vercel Agent 现在可以从 npm 和自定义仓库安装私有包 - Vercel

Vercel Agent 可以通过在 Vercel 上存储的共享环境变量凭证,从 npm 和自定义仓库安装私有依赖。在代理会话中运行的 npm、pnpm 和经典 Yarn 的认证方式与 Vercel 构建中的认证方式一致。

要开始使用,请为开发环境或预览环境添加共享环境变量:

  • 使用 NPM_TOKEN 来安装托管在 registry.npmjs.org 上的私有包。
  • 使用 NPM_RC 来配置自定义或多个仓库。

Vercel Agent 仅读取团队共享变量,不读取项目范围的变量。凭证值存储在沙盒外部,因此代理无法读取这些值。

了解更多信息,请参阅私有依赖文档。