← Public packages
@kody/netlify
Inspect Netlify sites, deploys, env-var metadata, and forms on the caller's account, with dry-run writes.
src/get-deploy.js
15 lines · 549 B · JavaScriptimport { 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)
}