Skip to content

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

Package listing

@kody/netlify

src/get-deploy.js

15 lines · 549 B · JavaScript
import { getDeploy } from './netlify.js'

/**
 * Load one deploy by id. Pass `site` to use the site-scoped path.
 * @param {Object} input
 * @param {string} input.deploy Deploy id.
 * @param {string} [input.site] Site id, name, or domain.
 * @returns {Promise<{ id: string, state: string | null, url: string | null }>}
 * @example
 * import getDeploy from 'kody:@kody/netlify/get-deploy'
 * const deploy = await getDeploy({ deploy: 'deploy_123' })
 */
export default async function getDeployEntrypoint(input = {}) {
	return await getDeploy(input)
}