雲端供應商
Vercel
Connect your Vercel account to give agents visibility into your deployments, serverless functions, and edge network. Agents can monitor build performance, analyze traffic patterns, and troubleshoot deployment issues.
連接
從終端機連接Vercel。傳入--help可查看Vercel接受的旗標,在無瀏覽器環境中再加上--no-browser。
Terminal
polylane cloud connect --provider vercel從Vercel Marketplace安裝的Polylane整合。
Vercel透過在你的團隊或個人帳戶上安裝Polylane整合來連接。這個整合使用Vercel的OAuth流程,所以沒有API金鑰需要管理。由於它以OAuth為基礎,Vercel必須從主控台連接。
設定
- 點擊Continue to Vercel開啟整合頁面。
- 選擇要連接的團隊或個人帳戶。
- 選擇Polylane可以存取哪些專案,或授予全部存取。
- 點擊Install確認。
Polylane會探索你的專案、部署、網域與儲存資源。部署、網域變更與基礎設施更新會透過webhook自動保持最新。
同步的內容
- Projects:選定範圍內的每個專案
- Deployments:近期的部署歷史與狀態
- Domains:自訂網域及其設定
- Edge Config:edge設定存放區
- Blob Storage:Vercel Blob存放區
- KV Storage:Vercel KV資料庫
- Postgres:Vercel Postgres資料庫
中斷連接
在你Vercel帳戶的Settings → Integrations底下移除Polylane整合,或從Polylane中斷該帳戶的連接。任一種都會停止同步。
中斷連接
中斷連接會停止所有同步與檢查,並刪除Polylane持有的憑證。 Polylane會移除Vercel的API允許它移除的東西。以下項目會留下,直到你自行移除:
- Vercel integration configuration
- polylane-* log, analytics and speed-insights drains
Terminal
polylane cloud disconnect <id>工具
3代理可以在對話串中執行的操作。
Api
Call any Vercel REST API endpoint that lacks a dedicated tool
Get Logs
Get logs from a Vercel deployment
Query Metrics
Query Vercel observability metrics (requests, errors, function duration)
支援的資源
21會出現在你基礎設施圖中的資源類型。
Project
Deployment
Domain
Edge Config
Postgres
KV Store
Blob Store
Log Drain
Custom Environment
Firewall
Webhook
Integration
Sandbox
Workflow
Cron Job
Feature Flag
AI Gateway
Microfrontends Group
Access Group
Drain
Container Repository