Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/vercel

src/get-deployment.js

14 lines · 529 B · JavaScript
import { getDeployment } from './vercel.js'

/**
 * Load one deployment by id or URL.
 * @param {Object} input
 * @param {string} input.deployment Deployment id or hostname.
 * @returns {Promise<{ id: string, name: string | null, url: string | null, state: string | null }>}
 * @example
 * import getDeployment from 'kody:@kody/vercel/get-deployment'
 * const deployment = await getDeployment({ deployment: 'dpl_123' })
 */
export default async function getDeploymentEntrypoint(input = {}) {
	return await getDeployment(input)
}