Vercel Sandbox 支援代管 npm 憑證,可安裝團隊私有套件
Vercel Sandbox now supports managed npm credentials
安裝團隊的私有 npm 套件時,AI 助理需要憑證,但憑證不該直接交給它。
- Vercel Sandbox 現在可以使用存放在團隊共用環境變數中的 npm 憑證,也支援 GitHub Packages 和 JFrog Artifactory 等自訂套件庫。
- 建立沙盒時加入
credentials: { npm: true },防火牆就會替送往套件庫的安裝請求加上驗證,憑證則留在沙盒外。 - 這讓 AI 助理能安裝所需套件,同時不必看到憑證。
- 使用前需更新 Sandbox SDK 或 CLI。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
Vercel Sandbox can now install your team's private npm packages using credentials stored in team Shared Environment Variables. Custom registries such as GitHub Packages and JFrog Artifactory are also supported.
Pass credentials: { npm: true } when creating a sandbox to let it use your team's existing npm credentials.
Create a sandbox with managed npm credentials for private package installs.
Tokens stay outside the sandbox. The firewall adds authentication to install requests sent to your configured registries, so a coding agent can install dependencies without seeing the tokens.
Update your Sandbox SDK or CLI to the latest version.
Upgrade the Sandbox SDK or CLI.
Read the npm credentials documentation to get started.