NetlifyDeployment
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:87
deployment capability for Netlify, where a Holocron project is a Netlify site.
Implements
Section titled “Implements”Deployment
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NetlifyDeployment(
client,opts?):NetlifyDeployment
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:94
Parameters
Section titled “Parameters”client
Section titled “client”() => object
Returns
Section titled “Returns”NetlifyDeployment
Properties
Section titled “Properties”domain?
Section titled “domain?”
readonlyoptionaldomain?:string
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:92
Custom domain declared in the deployment provider’s configuration.
holocron setup attaches it to the configured project and hands any
returned verification record to the dns capability.
Implementation of
Section titled “Implementation of”Deployment.domain
readonlykey:"deployment"
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:89
Capability key; always "deployment".
Implementation of
Section titled “Implementation of”Deployment.key
providerName
Section titled “providerName”
readonlyproviderName:"netlify"="netlify"
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:91
Provider name; always "netlify".
Implementation of
Section titled “Implementation of”Deployment.providerName
Methods
Section titled “Methods”ensureCustomDomain()
Section titled “ensureCustomDomain()”ensureCustomDomain(
projectId,hostname):Promise<DnsRecordRequest|null>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:198
Idempotent: PATCHing the same custom_domain twice is a no-op on
Netlify’s side. Unlike Vercel, Netlify’s API has no DNS-misconfiguration
check to consult — it’s returned unconditionally once set, which is
safe because Dns.upsertRecord() on the receiving end is itself
idempotent (re-upserting an already-correct CNAME is a no-op there).
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
hostname
Section titled “hostname”string
Returns
Section titled “Returns”Promise<DnsRecordRequest | null>
Implementation of
Section titled “Implementation of”Deployment.ensureCustomDomain
ensureProject()
Section titled “ensureProject()”ensureProject(
input):Promise<DeploymentProject>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:108
Create if missing, otherwise return existing — matched by exact name.
Parameters
Section titled “Parameters”framework?
Section titled “framework?”string
string
string
rootDirectory?
Section titled “rootDirectory?”string
Returns
Section titled “Returns”Promise<DeploymentProject>
Implementation of
Section titled “Implementation of”Deployment.ensureProject
getDeployment()
Section titled “getDeployment()”getDeployment(
deploymentId):Promise<DeploymentRecord>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:186
Fetches a deploy by id and maps its state to ready, error or building.
Parameters
Section titled “Parameters”deploymentId
Section titled “deploymentId”string
Returns
Section titled “Returns”Promise<DeploymentRecord>
Implementation of
Section titled “Implementation of”Deployment.getDeployment
listEnvVars()
Section titled “listEnvVars()”listEnvVars(
projectId,target):Promise<string[]>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:151
Lists the names of the env vars that have a value for the given target; needs accountId.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
target
Section titled “target”DeploymentTarget
Returns
Section titled “Returns”Promise<string[]>
Implementation of
Section titled “Implementation of”Deployment.listEnvVars
listProjects()
Section titled “listProjects()”listProjects():
Promise<DeploymentProject[]>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:102
Lists the sites the token can see, mapped to deployment projects.
Returns
Section titled “Returns”Promise<DeploymentProject[]>
Implementation of
Section titled “Implementation of”Deployment.listProjects
setEnvVar()
Section titled “setEnvVar()”setEnvVar(
projectId,target,name,value):Promise<void>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:159
Sets an env var for the given target (production, or the branch-deploy context for any other); needs accountId.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
target
Section titled “target”DeploymentTarget
string
string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Deployment.setEnvVar
triggerDeployment()
Section titled “triggerDeployment()”triggerDeployment(
input):Promise<DeploymentRecord>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:170
No Git integration in Sentinel’s usage (file-based deploy only), but REQUIRED by the interface. Netlify’s branch-triggered-build endpoint is the closest analog for a git-linked site; untested against a real git-linked Netlify site since no current consumer exercises this path.
Parameters
Section titled “Parameters”branch
Section titled “branch”string
projectId
Section titled “projectId”string
target?
Section titled “target?”DeploymentTrigger
Returns
Section titled “Returns”Promise<DeploymentRecord>
Implementation of
Section titled “Implementation of”Deployment.triggerDeployment
updateProjectSettings()
Section titled “updateProjectSettings()”updateProjectSettings(
projectId,_settings):Promise<DeploymentProject>
Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:145
Netlify has no direct equivalent of Vercel’s git-linked project
settings (previewDeploymentsDisabled / gitProviderCreateDeployments)
— Sentinel’s site isn’t git-linked at all. Best-effort: return the
project unchanged. Revisit if a future consumer needs a real mapping.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
_settings
Section titled “_settings”DeploymentProjectSettings
Returns
Section titled “Returns”Promise<DeploymentProject>
Implementation of
Section titled “Implementation of”Deployment.updateProjectSettings