Skip to main content

builds

Creates, updates, deletes, gets or lists a builds resource.

Overview

Namebuilds
TypeResource
Idvercel.deployments.builds

Fields

The following fields are returned by SELECT queries:

An object representing a Build on Vercel

NameDatatypeDescription
idstringThe unique identifier of the Build
configobjectAn object that contains the Build's configuration
copiedFromstring
createdAtnumberThe time at which the Build was created
createdInstringThe region where the Build was first created
deployedAtnumberThe time at which the Build was deployed
deploymentIdstringThe unique identifier of the deployment
entrypointstringThe entrypoint of the deployment
fingerprintstringIf the Build uses the @vercel/static Runtime, it contains a hashed string of all outputs
outputarrayA list of outputs for the Build that can be either Serverless Functions or static files
readyStatestringThe state of the deployment depending on the process of deploying, or if it is ready or in an error state
readyStateAtnumberThe time at which the Build state was last modified
scheduledAtnumberThe time at which the Build was scheduled to be built
usestringThe Runtime the Build used to generate the output

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_builds_for_deploymentselectdeploymentIdRetrieves the list of builds given their deployment's unique identifier. No longer listed as public API as of May 2023.
_get_builds_for_deploymentexecdeploymentIdRetrieves the list of builds given their deployment's unique identifier. No longer listed as public API as of May 2023.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deploymentIdstringThe deployment unique identifier

SELECT examples

Retrieves the list of builds given their deployment's unique identifier. No longer listed as public API as of May 2023.

SELECT
id,
config,
copiedFrom,
createdAt,
createdIn,
deployedAt,
deploymentId,
entrypoint,
fingerprint,
output,
readyState,
readyStateAt,
scheduledAt,
use
FROM vercel.deployments.builds
WHERE deploymentId = '{{ deploymentId }}' -- required
;

Lifecycle Methods

Retrieves the list of builds given their deployment's unique identifier. No longer listed as public API as of May 2023.

EXEC vercel.deployments.builds._get_builds_for_deployment 
@deploymentId='{{ deploymentId }}' --required
;