Skip to content

NetlifyDeployment

Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:87

deployment capability for Netlify, where a Holocron project is a Netlify site.

  • Deployment

new NetlifyDeployment(client, opts?): NetlifyDeployment

Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:94

() => object

NetlifyDeploymentOptions = {}

NetlifyDeployment

readonly optional domain?: 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.

Deployment.domain


readonly key: "deployment"

Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:89

Capability key; always "deployment".

Deployment.key


readonly providerName: "netlify" = "netlify"

Defined in: plugins/holocron-plugin-netlify/src/capabilities/deployment.ts:91

Provider name; always "netlify".

Deployment.providerName

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).

string

string

Promise<DnsRecordRequest | null>

Deployment.ensureCustomDomain


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.

string

string

string

string

Promise<DeploymentProject>

Deployment.ensureProject


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.

string

Promise<DeploymentRecord>

Deployment.getDeployment


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.

string

DeploymentTarget

Promise<string[]>

Deployment.listEnvVars


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.

Promise<DeploymentProject[]>

Deployment.listProjects


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.

string

DeploymentTarget

string

string

Promise<void>

Deployment.setEnvVar


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.

string

string

DeploymentTrigger

Promise<DeploymentRecord>

Deployment.triggerDeployment


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.

string

DeploymentProjectSettings

Promise<DeploymentProject>

Deployment.updateProjectSettings