---
title: Update a Cloudflare Pages project
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Pages](https://developers.cloudflare.com/api/go/resources/pages)

[Projects](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Update a Cloudflare Pages project

client.Pages.Projects.Edit(ctx, projectName, params) (\*[Project](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/pages/projects/{project\_name}

Update the build, deployment, source, or environment settings for a Cloudflare Pages project. To delete an environment variable, set its key to `null`.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Pages Write`

##### ParametersExpand Collapse

projectName string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

[Link to this property](<#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20project_name%20%3E%20(schema)>)

<details>

<summary>

params ProjectEditParams

</summary>

AccountID param.Field\[string]

Path param: Identifier.

maxLength32

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

<details>

<summary>

BuildConfig param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/edit#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)">ProjectEditParamsBuildConfig</a>]Optional

Body param: Configs for the project build process.

</summary>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20root_dir">Link to this property</a>

WebAnalyticsTag stringOptional

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken stringOptional

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config%20%3E%20(schema)%20%3E%20(property)%20web_analytics_token">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20build_config">Link to this property</a>

<details>

<summary>

DeploymentConfigs param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/edit#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)">ProjectEditParamsDeploymentConfigs</a>]Optional

Body param: Configs for deployments in a project.

</summary>

<details>

<summary>

Preview ProjectEditParamsDeploymentConfigsPreviewOptional

Configs for preview deploys.

</summary>

<details>

<summary>

AIBindings map\[string, ProjectEditParamsDeploymentConfigsPreviewAIBindings]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings">Link to this property</a>

AlwaysUseLatestCompatibilityDate boolOptional

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectEditParamsDeploymentConfigsPreviewAnalyticsEngineDatasets]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectEditParamsDeploymentConfigsPreviewBrowsers]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20browsers">Link to this property</a>

BuildImageMajorVersion int64Optional

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate stringOptional

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]stringOptional

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectEditParamsDeploymentConfigsPreviewD1Databases]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectEditParamsDeploymentConfigsPreviewDurableObjectNamespaces]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectEditParamsDeploymentConfigsPreviewEnvVars]Optional

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectEditParamsDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectEditParamsDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectEditParamsDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectEditParamsDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen boolOptional

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectEditParamsDeploymentConfigsPreviewHyperdriveBindings]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectEditParamsDeploymentConfigsPreviewKVNamespaces]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectEditParamsDeploymentConfigsPreviewLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectEditParamsDeploymentConfigsPreviewMTLSCertificates]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectEditParamsDeploymentConfigsPreviewPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectEditParamsDeploymentConfigsPreviewQueueProducers]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectEditParamsDeploymentConfigsPreviewR2Buckets]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectEditParamsDeploymentConfigsPreviewServices]Optional

Services used for Pages Functions.

</summary>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

Environment stringOptional

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectEditParamsDeploymentConfigsPreviewUsageModelOptional

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectEditParamsDeploymentConfigsPreviewUsageModelStandard ProjectEditParamsDeploymentConfigsPreviewUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectEditParamsDeploymentConfigsPreviewUsageModelBundled ProjectEditParamsDeploymentConfigsPreviewUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectEditParamsDeploymentConfigsPreviewUsageModelUnbound ProjectEditParamsDeploymentConfigsPreviewUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectEditParamsDeploymentConfigsPreviewVectorizeBindings]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20preview">Link to this property</a>

<details>

<summary>

Production ProjectEditParamsDeploymentConfigsProductionOptional

Configs for production deploys.

</summary>

<details>

<summary>

AIBindings map\[string, ProjectEditParamsDeploymentConfigsProductionAIBindings]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings">Link to this property</a>

AlwaysUseLatestCompatibilityDate boolOptional

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectEditParamsDeploymentConfigsProductionAnalyticsEngineDatasets]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectEditParamsDeploymentConfigsProductionBrowsers]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20browsers">Link to this property</a>

BuildImageMajorVersion int64Optional

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate stringOptional

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]stringOptional

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectEditParamsDeploymentConfigsProductionD1Databases]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectEditParamsDeploymentConfigsProductionDurableObjectNamespaces]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectEditParamsDeploymentConfigsProductionEnvVars]Optional

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectEditParamsDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectEditParamsDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectEditParamsDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectEditParamsDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen boolOptional

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectEditParamsDeploymentConfigsProductionHyperdriveBindings]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectEditParamsDeploymentConfigsProductionKVNamespaces]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectEditParamsDeploymentConfigsProductionLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectEditParamsDeploymentConfigsProductionMTLSCertificates]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectEditParamsDeploymentConfigsProductionPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectEditParamsDeploymentConfigsProductionQueueProducers]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectEditParamsDeploymentConfigsProductionR2Buckets]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectEditParamsDeploymentConfigsProductionServices]Optional

Services used for Pages Functions.

</summary>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

Environment stringOptional

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectEditParamsDeploymentConfigsProductionUsageModelOptional

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectEditParamsDeploymentConfigsProductionUsageModelStandard ProjectEditParamsDeploymentConfigsProductionUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectEditParamsDeploymentConfigsProductionUsageModelBundled ProjectEditParamsDeploymentConfigsProductionUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectEditParamsDeploymentConfigsProductionUsageModelUnbound ProjectEditParamsDeploymentConfigsProductionUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectEditParamsDeploymentConfigsProductionVectorizeBindings]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs%20%3E%20(schema)%20%3E%20(property)%20production">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20deployment_configs">Link to this property</a>

Name param.Field\[string]Optional

Body param: Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

ProductionBranch param.Field\[string]Optional

Body param: Production branch of the project. Used to identify production deployments.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20production_branch">Link to this property</a>

<details>

<summary>

Source param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/edit#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)">ProjectEditParamsSource</a>]Optional

Body param: Configs for the project source control.

</summary>

<details>

<summary>

Config ProjectEditParamsSourceConfig

</summary>

DeprecatedDeploymentsEnabled boolOptional

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner stringOptional

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID stringOptional

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]stringOptional

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]stringOptional

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled boolOptional

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]stringOptional

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]stringOptional

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting ProjectEditParamsSourceConfigPreviewDeploymentSettingOptional

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const ProjectEditParamsSourceConfigPreviewDeploymentSettingAll ProjectEditParamsSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const ProjectEditParamsSourceConfigPreviewDeploymentSettingNone ProjectEditParamsSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const ProjectEditParamsSourceConfigPreviewDeploymentSettingCustom ProjectEditParamsSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch stringOptional

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled boolOptional

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID stringOptional

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName stringOptional

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type ProjectEditParamsSourceType

The source control management provider.

</summary>

One of the following:

const ProjectEditParamsSourceTypeGitHub ProjectEditParamsSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ProjectEditParamsSourceTypeGitlab ProjectEditParamsSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.projects%20%3E%20(method)%20edit%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type Project struct{…}

</summary>

ID string

ID of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

CanonicalDeployment <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)">Deployment</a>

Most recent production deployment of the project.

</summary>

ID string

Id of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Aliases \[]string

A list of alias URLs pointing to this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20aliases">Link to this property</a>

<details>

<summary>

BuildConfig DeploymentBuildConfig

Configs for the project build process.

</summary>

WebAnalyticsTag string

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken string

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_token">Link to this property</a>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Assets output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20root_dir">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config">Link to this property</a>

CreatedOn Time

When the deployment was created.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

DeploymentTrigger DeploymentDeploymentTrigger

Info about what caused the deployment.

</summary>

<details>

<summary>

Metadata DeploymentDeploymentTriggerMetadata

Additional info about the trigger.

</summary>

Branch string

Where the trigger happened.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20branch">Link to this property</a>

CommitDirty bool

Whether the deployment trigger commit was dirty.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_dirty">Link to this property</a>

CommitHash string

Hash of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_hash">Link to this property</a>

CommitMessage string

Message of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_message">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata">Link to this property</a>

<details>

<summary>

Type DeploymentDeploymentTriggerType

What caused the deployment.

</summary>

One of the following:

const DeploymentDeploymentTriggerTypeGitHubPush DeploymentDeploymentTriggerType = "github:push"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentDeploymentTriggerTypeADHoc DeploymentDeploymentTriggerType = "ad\_hoc"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const DeploymentDeploymentTriggerTypeDeployHook DeploymentDeploymentTriggerType = "deploy\_hook"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger">Link to this property</a>

<details>

<summary>

EnvVars map\[string, DeploymentEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type DeploymentEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type DeploymentEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type DeploymentEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type DeploymentEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars">Link to this property</a>

<details>

<summary>

Environment DeploymentEnvironment

Type of deploy.

</summary>

One of the following:

const DeploymentEnvironmentPreview DeploymentEnvironment = "preview"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%200">Link to this property</a>

const DeploymentEnvironmentProduction DeploymentEnvironment = "production"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

IsSkipped bool

Whether the deployment was skipped.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20is_skipped">Link to this property</a>

<details>

<summary>

LatestStage <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

The status of the deployment.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage">Link to this property</a>

ModifiedOn Time

When the deployment was last modified.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

ProjectID string

Id of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_id">Link to this property</a>

ProjectName string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_name">Link to this property</a>

ShortID string

Short Id (8 character) of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20short_id">Link to this property</a>

<details>

<summary>

Source DeploymentSource

Configs for the project source control.

</summary>

<details>

<summary>

Config DeploymentSourceConfig

</summary>

DeprecatedDeploymentsEnabled bool

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner string

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID string

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]string

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]string

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled bool

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]string

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]string

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting DeploymentSourceConfigPreviewDeploymentSetting

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const DeploymentSourceConfigPreviewDeploymentSettingAll DeploymentSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingNone DeploymentSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingCustom DeploymentSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch string

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled bool

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID string

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName string

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type DeploymentSourceType

The source control management provider.

</summary>

One of the following:

const DeploymentSourceTypeGitHub DeploymentSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceTypeGitlab DeploymentSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

Stages \[]<a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

List of past stages.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20stages">Link to this property</a>

URL string

The live URL to view this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

<details>

<summary>

SkipReason DeploymentSkipReasonOptional

Why the deployment was skipped.

</summary>

One of the following:

const DeploymentSkipReasonCommitMessage DeploymentSkipReason = "commit\_message"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%200">Link to this property</a>

const DeploymentSkipReasonPreviewDeploymentsDisabled DeploymentSkipReason = "preview\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%201">Link to this property</a>

const DeploymentSkipReasonProductionDeploymentsDisabled DeploymentSkipReason = "production\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%202">Link to this property</a>

const DeploymentSkipReasonPathConfig DeploymentSkipReason = "path\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%203">Link to this property</a>

const DeploymentSkipReasonBranchConfig DeploymentSkipReason = "branch\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%204">Link to this property</a>

const DeploymentSkipReasonPagesToWorkersConversion DeploymentSkipReason = "pages\_to\_workers\_conversion"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%205">Link to this property</a>

const DeploymentSkipReasonSupersededQueuedBuild DeploymentSkipReason = "superseded\_queued\_build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason">Link to this property</a>

UsesFunctions boolOptional

Whether the deployment uses functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20uses_functions">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment">Link to this property</a>

CreatedOn Time

When the project was created.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

DeploymentConfigs ProjectDeploymentConfigs

Configs for deployments in a project.

</summary>

<details>

<summary>

Preview ProjectDeploymentConfigsPreview

Configs for preview deploys.

</summary>

AlwaysUseLatestCompatibilityDate bool

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

BuildImageMajorVersion int64

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate string

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]string

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectDeploymentConfigsPreviewEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen bool

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectDeploymentConfigsPreviewUsageModel

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectDeploymentConfigsPreviewUsageModelStandard ProjectDeploymentConfigsPreviewUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectDeploymentConfigsPreviewUsageModelBundled ProjectDeploymentConfigsPreviewUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectDeploymentConfigsPreviewUsageModelUnbound ProjectDeploymentConfigsPreviewUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

AIBindings map\[string, ProjectDeploymentConfigsPreviewAIBinding]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectDeploymentConfigsPreviewAnalyticsEngineDataset]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectDeploymentConfigsPreviewBrowser]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20browsers">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectDeploymentConfigsPreviewD1Database]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectDeploymentConfigsPreviewDurableObjectNamespace]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectDeploymentConfigsPreviewHyperdriveBinding]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectDeploymentConfigsPreviewKVNamespace]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectDeploymentConfigsPreviewLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectDeploymentConfigsPreviewMTLSCertificate]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectDeploymentConfigsPreviewPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectDeploymentConfigsPreviewQueueProducer]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectDeploymentConfigsPreviewR2Bucket]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectDeploymentConfigsPreviewService]Optional

Services used for Pages Functions.

</summary>

Environment string

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectDeploymentConfigsPreviewVectorizeBinding]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview">Link to this property</a>

<details>

<summary>

Production ProjectDeploymentConfigsProduction

Configs for production deploys.

</summary>

AlwaysUseLatestCompatibilityDate bool

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

BuildImageMajorVersion int64

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate string

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]string

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectDeploymentConfigsProductionEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen bool

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectDeploymentConfigsProductionUsageModel

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectDeploymentConfigsProductionUsageModelStandard ProjectDeploymentConfigsProductionUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectDeploymentConfigsProductionUsageModelBundled ProjectDeploymentConfigsProductionUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectDeploymentConfigsProductionUsageModelUnbound ProjectDeploymentConfigsProductionUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

AIBindings map\[string, ProjectDeploymentConfigsProductionAIBinding]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectDeploymentConfigsProductionAnalyticsEngineDataset]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectDeploymentConfigsProductionBrowser]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20browsers">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectDeploymentConfigsProductionD1Database]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectDeploymentConfigsProductionDurableObjectNamespace]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectDeploymentConfigsProductionHyperdriveBinding]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectDeploymentConfigsProductionKVNamespace]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectDeploymentConfigsProductionLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectDeploymentConfigsProductionMTLSCertificate]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectDeploymentConfigsProductionPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectDeploymentConfigsProductionQueueProducer]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectDeploymentConfigsProductionR2Bucket]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectDeploymentConfigsProductionService]Optional

Services used for Pages Functions.

</summary>

Environment string

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectDeploymentConfigsProductionVectorizeBinding]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs">Link to this property</a>

Framework string

Framework the project is using.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20framework">Link to this property</a>

FrameworkVersion string

Version of the framework the project is using.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20framework_version">Link to this property</a>

<details>

<summary>

LatestDeployment <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)">Deployment</a>

Most recent deployment of the project.

</summary>

ID string

Id of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Aliases \[]string

A list of alias URLs pointing to this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20aliases">Link to this property</a>

<details>

<summary>

BuildConfig DeploymentBuildConfig

Configs for the project build process.

</summary>

WebAnalyticsTag string

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken string

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_token">Link to this property</a>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Assets output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20root_dir">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config">Link to this property</a>

CreatedOn Time

When the deployment was created.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

DeploymentTrigger DeploymentDeploymentTrigger

Info about what caused the deployment.

</summary>

<details>

<summary>

Metadata DeploymentDeploymentTriggerMetadata

Additional info about the trigger.

</summary>

Branch string

Where the trigger happened.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20branch">Link to this property</a>

CommitDirty bool

Whether the deployment trigger commit was dirty.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_dirty">Link to this property</a>

CommitHash string

Hash of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_hash">Link to this property</a>

CommitMessage string

Message of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_message">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata">Link to this property</a>

<details>

<summary>

Type DeploymentDeploymentTriggerType

What caused the deployment.

</summary>

One of the following:

const DeploymentDeploymentTriggerTypeGitHubPush DeploymentDeploymentTriggerType = "github:push"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentDeploymentTriggerTypeADHoc DeploymentDeploymentTriggerType = "ad\_hoc"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const DeploymentDeploymentTriggerTypeDeployHook DeploymentDeploymentTriggerType = "deploy\_hook"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger">Link to this property</a>

<details>

<summary>

EnvVars map\[string, DeploymentEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type DeploymentEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type DeploymentEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type DeploymentEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type DeploymentEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars">Link to this property</a>

<details>

<summary>

Environment DeploymentEnvironment

Type of deploy.

</summary>

One of the following:

const DeploymentEnvironmentPreview DeploymentEnvironment = "preview"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%200">Link to this property</a>

const DeploymentEnvironmentProduction DeploymentEnvironment = "production"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

IsSkipped bool

Whether the deployment was skipped.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20is_skipped">Link to this property</a>

<details>

<summary>

LatestStage <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

The status of the deployment.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage">Link to this property</a>

ModifiedOn Time

When the deployment was last modified.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

ProjectID string

Id of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_id">Link to this property</a>

ProjectName string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_name">Link to this property</a>

ShortID string

Short Id (8 character) of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20short_id">Link to this property</a>

<details>

<summary>

Source DeploymentSource

Configs for the project source control.

</summary>

<details>

<summary>

Config DeploymentSourceConfig

</summary>

DeprecatedDeploymentsEnabled bool

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner string

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID string

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]string

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]string

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled bool

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]string

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]string

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting DeploymentSourceConfigPreviewDeploymentSetting

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const DeploymentSourceConfigPreviewDeploymentSettingAll DeploymentSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingNone DeploymentSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingCustom DeploymentSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch string

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled bool

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID string

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName string

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type DeploymentSourceType

The source control management provider.

</summary>

One of the following:

const DeploymentSourceTypeGitHub DeploymentSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceTypeGitlab DeploymentSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

Stages \[]<a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

List of past stages.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20stages">Link to this property</a>

URL string

The live URL to view this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

<details>

<summary>

SkipReason DeploymentSkipReasonOptional

Why the deployment was skipped.

</summary>

One of the following:

const DeploymentSkipReasonCommitMessage DeploymentSkipReason = "commit\_message"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%200">Link to this property</a>

const DeploymentSkipReasonPreviewDeploymentsDisabled DeploymentSkipReason = "preview\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%201">Link to this property</a>

const DeploymentSkipReasonProductionDeploymentsDisabled DeploymentSkipReason = "production\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%202">Link to this property</a>

const DeploymentSkipReasonPathConfig DeploymentSkipReason = "path\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%203">Link to this property</a>

const DeploymentSkipReasonBranchConfig DeploymentSkipReason = "branch\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%204">Link to this property</a>

const DeploymentSkipReasonPagesToWorkersConversion DeploymentSkipReason = "pages\_to\_workers\_conversion"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%205">Link to this property</a>

const DeploymentSkipReasonSupersededQueuedBuild DeploymentSkipReason = "superseded\_queued\_build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason">Link to this property</a>

UsesFunctions boolOptional

Whether the deployment uses functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment%20%2B%20(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20uses_functions">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment">Link to this property</a>

Name string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

PreviewScriptName string

Name of the preview script.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20preview_script_name">Link to this property</a>

ProductionBranch string

Production branch of the project. Used to identify production deployments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionScriptName string

Name of the production script.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20production_script_name">Link to this property</a>

UsesFunctions bool

Whether the project uses functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20uses_functions">Link to this property</a>

<details>

<summary>

BuildConfig ProjectBuildConfigOptional

Configs for the project build process.

</summary>

WebAnalyticsTag string

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken string

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_token">Link to this property</a>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Assets output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20root_dir">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config">Link to this property</a>

Domains \[]stringOptional

A list of associated custom domains for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20domains">Link to this property</a>

<details>

<summary>

Source ProjectSourceOptional

Configs for the project source control.

</summary>

<details>

<summary>

Config ProjectSourceConfig

</summary>

DeprecatedDeploymentsEnabled bool

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner string

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID string

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]string

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]string

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled bool

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]string

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]string

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting ProjectSourceConfigPreviewDeploymentSetting

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const ProjectSourceConfigPreviewDeploymentSettingAll ProjectSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const ProjectSourceConfigPreviewDeploymentSettingNone ProjectSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const ProjectSourceConfigPreviewDeploymentSettingCustom ProjectSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch string

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled bool

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID string

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName string

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type ProjectSourceType

The source control management provider.

</summary>

One of the following:

const ProjectSourceTypeGitHub ProjectSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ProjectSourceTypeGitlab ProjectSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

Subdomain stringOptional

The Cloudflare subdomain associated with the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20subdomain">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>)

### Update a Cloudflare Pages project

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/pages"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  project, err := client.Pages.Projects.Edit(
    context.TODO(),
    "this-is-my-project-01",
    pages.ProjectEditParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", project.ID)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "7b162ea7-7367-4d67-bcde-1160995d5",
    "canonical_deployment": {
      "id": "f64788e9-fccd-4d4a-a28a-cb84f88f6",
      "aliases": [
        "https://branchname.projectname.pages.dev"
      ],
      "build_config": {
        "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
        "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
        "build_caching": true,
        "build_command": "npm run build",
        "destination_dir": "build",
        "root_dir": "/"
      },
      "created_on": "2021-03-09T00:55:03.923456Z",
      "deployment_trigger": {
        "metadata": {
          "branch": "main",
          "commit_dirty": false,
          "commit_hash": "ad9ccd918a81025731e10e40267e11273a263421",
          "commit_message": "Update index.html"
        },
        "type": "ad_hoc"
      },
      "env_vars": {
        "foo": {
          "type": "plain_text",
          "value": "hello world"
        }
      },
      "environment": "preview",
      "is_skipped": true,
      "latest_stage": {
        "ended_on": "2021-03-09T00:58:59.045655Z",
        "name": "deploy",
        "started_on": "2021-03-09T00:55:03.923456Z",
        "status": "success"
      },
      "modified_on": "2021-03-09T00:58:59.045655Z",
      "project_id": "7b162ea7-7367-4d67-bcde-1160995d5",
      "project_name": "this-is-my-project-01",
      "short_id": "f64788e9",
      "source": {
        "config": {
          "deployments_enabled": true,
          "owner": "my-org",
          "owner_id": "12345678",
          "path_excludes": [
            "string"
          ],
          "path_includes": [
            "string"
          ],
          "pr_comments_enabled": true,
          "preview_branch_excludes": [
            "string"
          ],
          "preview_branch_includes": [
            "string"
          ],
          "preview_deployment_setting": "all",
          "production_branch": "main",
          "production_deployments_enabled": true,
          "repo_id": "12345678",
          "repo_name": "my-repo"
        },
        "type": "github"
      },
      "stages": [
        {
          "ended_on": "2021-06-03T15:39:03.134378Z",
          "name": "queued",
          "started_on": "2021-06-03T15:38:15.608194Z",
          "status": "active"
        },
        {
          "ended_on": null,
          "name": "initialize",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "clone_repo",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "build",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "deploy",
          "started_on": null,
          "status": "idle"
        }
      ],
      "url": "https://f64788e9.ninjakittens.pages.dev",
      "skip_reason": "commit_message",
      "uses_functions": true
    },
    "created_on": "2017-01-01T00:00:00Z",
    "deployment_configs": {
      "preview": {
        "always_use_latest_compatibility_date": false,
        "build_image_major_version": 3,
        "compatibility_date": "2025-01-01T00:00:00Z",
        "compatibility_flags": [
          "url_standard"
        ],
        "env_vars": {
          "foo": {
            "type": "plain_text",
            "value": "hello world"
          }
        },
        "fail_open": true,
        "usage_model": "standard",
        "ai_bindings": {
          "AI_BINDING": {
            "project_id": "some-project-id"
          }
        },
        "analytics_engine_datasets": {
          "ANALYTICS_ENGINE_BINDING": {
            "dataset": "api_analytics"
          }
        },
        "browsers": {
          "BROWSER": {}
        },
        "d1_databases": {
          "D1_BINDING": {
            "id": "445e2955-951a-43f8-a35b-a4d0c8138f63"
          }
        },
        "durable_object_namespaces": {
          "DO_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "hyperdrive_bindings": {
          "HYPERDRIVE": {
            "id": "a76a99bc342644deb02c38d66082262a"
          }
        },
        "kv_namespaces": {
          "KV_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "limits": {
          "cpu_ms": 100
        },
        "mtls_certificates": {
          "MTLS": {
            "certificate_id": "d7cdd17c-916f-4cb7-aabe-585eb382ec4e"
          }
        },
        "placement": {
          "mode": "smart"
        },
        "queue_producers": {
          "QUEUE_PRODUCER_BINDING": {
            "name": "some-queue"
          }
        },
        "r2_buckets": {
          "R2_BINDING": {
            "name": "some-bucket",
            "jurisdiction": "eu"
          }
        },
        "services": {
          "SERVICE_BINDING": {
            "environment": "production",
            "service": "example-worker",
            "entrypoint": "MyHandler"
          }
        },
        "vectorize_bindings": {
          "VECTORIZE": {
            "index_name": "my_index"
          }
        },
        "wrangler_config_hash": "abc123def456"
      },
      "production": {
        "always_use_latest_compatibility_date": false,
        "build_image_major_version": 3,
        "compatibility_date": "2025-01-01T00:00:00Z",
        "compatibility_flags": [
          "url_standard"
        ],
        "env_vars": {
          "foo": {
            "type": "plain_text",
            "value": "hello world"
          }
        },
        "fail_open": true,
        "usage_model": "standard",
        "ai_bindings": {
          "AI_BINDING": {
            "project_id": "some-project-id"
          }
        },
        "analytics_engine_datasets": {
          "ANALYTICS_ENGINE_BINDING": {
            "dataset": "api_analytics"
          }
        },
        "browsers": {
          "BROWSER": {}
        },
        "d1_databases": {
          "D1_BINDING": {
            "id": "445e2955-951a-43f8-a35b-a4d0c8138f63"
          }
        },
        "durable_object_namespaces": {
          "DO_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "hyperdrive_bindings": {
          "HYPERDRIVE": {
            "id": "a76a99bc342644deb02c38d66082262a"
          }
        },
        "kv_namespaces": {
          "KV_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "limits": {
          "cpu_ms": 100
        },
        "mtls_certificates": {
          "MTLS": {
            "certificate_id": "d7cdd17c-916f-4cb7-aabe-585eb382ec4e"
          }
        },
        "placement": {
          "mode": "smart"
        },
        "queue_producers": {
          "QUEUE_PRODUCER_BINDING": {
            "name": "some-queue"
          }
        },
        "r2_buckets": {
          "R2_BINDING": {
            "name": "some-bucket",
            "jurisdiction": "eu"
          }
        },
        "services": {
          "SERVICE_BINDING": {
            "environment": "production",
            "service": "example-worker",
            "entrypoint": "MyHandler"
          }
        },
        "vectorize_bindings": {
          "VECTORIZE": {
            "index_name": "my_index"
          }
        },
        "wrangler_config_hash": "abc123def456"
      }
    },
    "framework": "framework",
    "framework_version": "framework_version",
    "latest_deployment": {
      "id": "f64788e9-fccd-4d4a-a28a-cb84f88f6",
      "aliases": [
        "https://branchname.projectname.pages.dev"
      ],
      "build_config": {
        "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
        "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
        "build_caching": true,
        "build_command": "npm run build",
        "destination_dir": "build",
        "root_dir": "/"
      },
      "created_on": "2021-03-09T00:55:03.923456Z",
      "deployment_trigger": {
        "metadata": {
          "branch": "main",
          "commit_dirty": false,
          "commit_hash": "ad9ccd918a81025731e10e40267e11273a263421",
          "commit_message": "Update index.html"
        },
        "type": "ad_hoc"
      },
      "env_vars": {
        "foo": {
          "type": "plain_text",
          "value": "hello world"
        }
      },
      "environment": "preview",
      "is_skipped": true,
      "latest_stage": {
        "ended_on": "2021-03-09T00:58:59.045655Z",
        "name": "deploy",
        "started_on": "2021-03-09T00:55:03.923456Z",
        "status": "success"
      },
      "modified_on": "2021-03-09T00:58:59.045655Z",
      "project_id": "7b162ea7-7367-4d67-bcde-1160995d5",
      "project_name": "this-is-my-project-01",
      "short_id": "f64788e9",
      "source": {
        "config": {
          "deployments_enabled": true,
          "owner": "my-org",
          "owner_id": "12345678",
          "path_excludes": [
            "string"
          ],
          "path_includes": [
            "string"
          ],
          "pr_comments_enabled": true,
          "preview_branch_excludes": [
            "string"
          ],
          "preview_branch_includes": [
            "string"
          ],
          "preview_deployment_setting": "all",
          "production_branch": "main",
          "production_deployments_enabled": true,
          "repo_id": "12345678",
          "repo_name": "my-repo"
        },
        "type": "github"
      },
      "stages": [
        {
          "ended_on": "2021-06-03T15:39:03.134378Z",
          "name": "queued",
          "started_on": "2021-06-03T15:38:15.608194Z",
          "status": "active"
        },
        {
          "ended_on": null,
          "name": "initialize",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "clone_repo",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "build",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "deploy",
          "started_on": null,
          "status": "idle"
        }
      ],
      "url": "https://f64788e9.ninjakittens.pages.dev",
      "skip_reason": "commit_message",
      "uses_functions": true
    },
    "name": "this-is-my-project-01",
    "preview_script_name": "pages-worker--1234567-preview",
    "production_branch": "main",
    "production_script_name": "pages-worker--1234567-production",
    "uses_functions": true,
    "build_config": {
      "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
      "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
      "build_caching": true,
      "build_command": "npm run build",
      "destination_dir": "build",
      "root_dir": "/"
    },
    "domains": [
      "customdomain.com",
      "customdomain.org"
    ],
    "source": {
      "config": {
        "deployments_enabled": true,
        "owner": "my-org",
        "owner_id": "12345678",
        "path_excludes": [
          "string"
        ],
        "path_includes": [
          "string"
        ],
        "pr_comments_enabled": true,
        "preview_branch_excludes": [
          "string"
        ],
        "preview_branch_includes": [
          "string"
        ],
        "preview_deployment_setting": "all",
        "production_branch": "main",
        "production_deployments_enabled": true,
        "repo_id": "12345678",
        "repo_name": "my-repo"
      },
      "type": "github"
    },
    "subdomain": "helloworld.pages.dev"
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "7b162ea7-7367-4d67-bcde-1160995d5",
    "canonical_deployment": {
      "id": "f64788e9-fccd-4d4a-a28a-cb84f88f6",
      "aliases": [
        "https://branchname.projectname.pages.dev"
      ],
      "build_config": {
        "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
        "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
        "build_caching": true,
        "build_command": "npm run build",
        "destination_dir": "build",
        "root_dir": "/"
      },
      "created_on": "2021-03-09T00:55:03.923456Z",
      "deployment_trigger": {
        "metadata": {
          "branch": "main",
          "commit_dirty": false,
          "commit_hash": "ad9ccd918a81025731e10e40267e11273a263421",
          "commit_message": "Update index.html"
        },
        "type": "ad_hoc"
      },
      "env_vars": {
        "foo": {
          "type": "plain_text",
          "value": "hello world"
        }
      },
      "environment": "preview",
      "is_skipped": true,
      "latest_stage": {
        "ended_on": "2021-03-09T00:58:59.045655Z",
        "name": "deploy",
        "started_on": "2021-03-09T00:55:03.923456Z",
        "status": "success"
      },
      "modified_on": "2021-03-09T00:58:59.045655Z",
      "project_id": "7b162ea7-7367-4d67-bcde-1160995d5",
      "project_name": "this-is-my-project-01",
      "short_id": "f64788e9",
      "source": {
        "config": {
          "deployments_enabled": true,
          "owner": "my-org",
          "owner_id": "12345678",
          "path_excludes": [
            "string"
          ],
          "path_includes": [
            "string"
          ],
          "pr_comments_enabled": true,
          "preview_branch_excludes": [
            "string"
          ],
          "preview_branch_includes": [
            "string"
          ],
          "preview_deployment_setting": "all",
          "production_branch": "main",
          "production_deployments_enabled": true,
          "repo_id": "12345678",
          "repo_name": "my-repo"
        },
        "type": "github"
      },
      "stages": [
        {
          "ended_on": "2021-06-03T15:39:03.134378Z",
          "name": "queued",
          "started_on": "2021-06-03T15:38:15.608194Z",
          "status": "active"
        },
        {
          "ended_on": null,
          "name": "initialize",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "clone_repo",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "build",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "deploy",
          "started_on": null,
          "status": "idle"
        }
      ],
      "url": "https://f64788e9.ninjakittens.pages.dev",
      "skip_reason": "commit_message",
      "uses_functions": true
    },
    "created_on": "2017-01-01T00:00:00Z",
    "deployment_configs": {
      "preview": {
        "always_use_latest_compatibility_date": false,
        "build_image_major_version": 3,
        "compatibility_date": "2025-01-01T00:00:00Z",
        "compatibility_flags": [
          "url_standard"
        ],
        "env_vars": {
          "foo": {
            "type": "plain_text",
            "value": "hello world"
          }
        },
        "fail_open": true,
        "usage_model": "standard",
        "ai_bindings": {
          "AI_BINDING": {
            "project_id": "some-project-id"
          }
        },
        "analytics_engine_datasets": {
          "ANALYTICS_ENGINE_BINDING": {
            "dataset": "api_analytics"
          }
        },
        "browsers": {
          "BROWSER": {}
        },
        "d1_databases": {
          "D1_BINDING": {
            "id": "445e2955-951a-43f8-a35b-a4d0c8138f63"
          }
        },
        "durable_object_namespaces": {
          "DO_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "hyperdrive_bindings": {
          "HYPERDRIVE": {
            "id": "a76a99bc342644deb02c38d66082262a"
          }
        },
        "kv_namespaces": {
          "KV_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "limits": {
          "cpu_ms": 100
        },
        "mtls_certificates": {
          "MTLS": {
            "certificate_id": "d7cdd17c-916f-4cb7-aabe-585eb382ec4e"
          }
        },
        "placement": {
          "mode": "smart"
        },
        "queue_producers": {
          "QUEUE_PRODUCER_BINDING": {
            "name": "some-queue"
          }
        },
        "r2_buckets": {
          "R2_BINDING": {
            "name": "some-bucket",
            "jurisdiction": "eu"
          }
        },
        "services": {
          "SERVICE_BINDING": {
            "environment": "production",
            "service": "example-worker",
            "entrypoint": "MyHandler"
          }
        },
        "vectorize_bindings": {
          "VECTORIZE": {
            "index_name": "my_index"
          }
        },
        "wrangler_config_hash": "abc123def456"
      },
      "production": {
        "always_use_latest_compatibility_date": false,
        "build_image_major_version": 3,
        "compatibility_date": "2025-01-01T00:00:00Z",
        "compatibility_flags": [
          "url_standard"
        ],
        "env_vars": {
          "foo": {
            "type": "plain_text",
            "value": "hello world"
          }
        },
        "fail_open": true,
        "usage_model": "standard",
        "ai_bindings": {
          "AI_BINDING": {
            "project_id": "some-project-id"
          }
        },
        "analytics_engine_datasets": {
          "ANALYTICS_ENGINE_BINDING": {
            "dataset": "api_analytics"
          }
        },
        "browsers": {
          "BROWSER": {}
        },
        "d1_databases": {
          "D1_BINDING": {
            "id": "445e2955-951a-43f8-a35b-a4d0c8138f63"
          }
        },
        "durable_object_namespaces": {
          "DO_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "hyperdrive_bindings": {
          "HYPERDRIVE": {
            "id": "a76a99bc342644deb02c38d66082262a"
          }
        },
        "kv_namespaces": {
          "KV_BINDING": {
            "namespace_id": "5eb63bbbe01eeed093cb22bb8f5acdc3"
          }
        },
        "limits": {
          "cpu_ms": 100
        },
        "mtls_certificates": {
          "MTLS": {
            "certificate_id": "d7cdd17c-916f-4cb7-aabe-585eb382ec4e"
          }
        },
        "placement": {
          "mode": "smart"
        },
        "queue_producers": {
          "QUEUE_PRODUCER_BINDING": {
            "name": "some-queue"
          }
        },
        "r2_buckets": {
          "R2_BINDING": {
            "name": "some-bucket",
            "jurisdiction": "eu"
          }
        },
        "services": {
          "SERVICE_BINDING": {
            "environment": "production",
            "service": "example-worker",
            "entrypoint": "MyHandler"
          }
        },
        "vectorize_bindings": {
          "VECTORIZE": {
            "index_name": "my_index"
          }
        },
        "wrangler_config_hash": "abc123def456"
      }
    },
    "framework": "framework",
    "framework_version": "framework_version",
    "latest_deployment": {
      "id": "f64788e9-fccd-4d4a-a28a-cb84f88f6",
      "aliases": [
        "https://branchname.projectname.pages.dev"
      ],
      "build_config": {
        "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
        "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
        "build_caching": true,
        "build_command": "npm run build",
        "destination_dir": "build",
        "root_dir": "/"
      },
      "created_on": "2021-03-09T00:55:03.923456Z",
      "deployment_trigger": {
        "metadata": {
          "branch": "main",
          "commit_dirty": false,
          "commit_hash": "ad9ccd918a81025731e10e40267e11273a263421",
          "commit_message": "Update index.html"
        },
        "type": "ad_hoc"
      },
      "env_vars": {
        "foo": {
          "type": "plain_text",
          "value": "hello world"
        }
      },
      "environment": "preview",
      "is_skipped": true,
      "latest_stage": {
        "ended_on": "2021-03-09T00:58:59.045655Z",
        "name": "deploy",
        "started_on": "2021-03-09T00:55:03.923456Z",
        "status": "success"
      },
      "modified_on": "2021-03-09T00:58:59.045655Z",
      "project_id": "7b162ea7-7367-4d67-bcde-1160995d5",
      "project_name": "this-is-my-project-01",
      "short_id": "f64788e9",
      "source": {
        "config": {
          "deployments_enabled": true,
          "owner": "my-org",
          "owner_id": "12345678",
          "path_excludes": [
            "string"
          ],
          "path_includes": [
            "string"
          ],
          "pr_comments_enabled": true,
          "preview_branch_excludes": [
            "string"
          ],
          "preview_branch_includes": [
            "string"
          ],
          "preview_deployment_setting": "all",
          "production_branch": "main",
          "production_deployments_enabled": true,
          "repo_id": "12345678",
          "repo_name": "my-repo"
        },
        "type": "github"
      },
      "stages": [
        {
          "ended_on": "2021-06-03T15:39:03.134378Z",
          "name": "queued",
          "started_on": "2021-06-03T15:38:15.608194Z",
          "status": "active"
        },
        {
          "ended_on": null,
          "name": "initialize",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "clone_repo",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "build",
          "started_on": null,
          "status": "idle"
        },
        {
          "ended_on": null,
          "name": "deploy",
          "started_on": null,
          "status": "idle"
        }
      ],
      "url": "https://f64788e9.ninjakittens.pages.dev",
      "skip_reason": "commit_message",
      "uses_functions": true
    },
    "name": "this-is-my-project-01",
    "preview_script_name": "pages-worker--1234567-preview",
    "production_branch": "main",
    "production_script_name": "pages-worker--1234567-production",
    "uses_functions": true,
    "build_config": {
      "web_analytics_tag": "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
      "web_analytics_token": "021e1057c18547eca7b79f2516f06o7x",
      "build_caching": true,
      "build_command": "npm run build",
      "destination_dir": "build",
      "root_dir": "/"
    },
    "domains": [
      "customdomain.com",
      "customdomain.org"
    ],
    "source": {
      "config": {
        "deployments_enabled": true,
        "owner": "my-org",
        "owner_id": "12345678",
        "path_excludes": [
          "string"
        ],
        "path_includes": [
          "string"
        ],
        "pr_comments_enabled": true,
        "preview_branch_excludes": [
          "string"
        ],
        "preview_branch_includes": [
          "string"
        ],
        "preview_deployment_setting": "all",
        "production_branch": "main",
        "production_deployments_enabled": true,
        "repo_id": "12345678",
        "repo_name": "my-repo"
      },
      "type": "github"
    },
    "subdomain": "helloworld.pages.dev"
  },
  "success": true
}
```