← Public packages
@kody/vercel
Call Vercel REST with a saved access token: teams, projects, deployments, domains, and env metadata.
src/list-deployments.js
13 lines · 629 B · JavaScriptimport { listDeployments } from './vercel.js'
/**
* List deployments for the authenticated account, team, or project.
* @param {Object} [input] Optional filters (`projectId`, `limit`, `teamId`, `teamSlug`).
* @returns {Promise<{ items: Array<{ id: string, name: string | null, url: string | null, state: string | null }>, pagination: object | null }>}
* @example
* import listDeployments from 'kody:@kody/vercel/list-deployments'
* const { items } = await listDeployments({ projectId: 'prj_123', limit: 10 })
*/
export default async function listDeploymentsEntrypoint(input = {}) {
return await listDeployments(input)
}