You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Pages API](/api/resources/pages/subresources/projects/methods/list/) empowers you to build automations and integrate Pages with your development workflow. At a high level, the API endpoints let you manage deployments and builds and configure projects. Cloudflare supports [Deploy Hooks](/pages/configuration/deploy-hooks/) for headless CMS deployments. Refer to the [API documentation](https://api.cloudflare.com/) for a full breakdown of object types and endpoints.
14
14
@@ -18,10 +18,9 @@ The [Pages API](/api/resources/pages/subresources/projects/methods/list/) empowe
18
18
19
19
To create an API token:
20
20
21
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com).
22
-
2. Select the user icon on the top right of your dashboard > **My Profile**.
4. You can go to **Edit Cloudflare Workers** template > **Use template** or go to **Create Custom Token** > **Get started**. If you create a custom token, you will need to make sure to add the **Cloudflare Pages** permission with **Edit** access.
21
+
1. <DashButtonurl="/?to=/:account/api-tokens" />
22
+
2. Select **Create Token**.
23
+
3. You can go to **Edit Cloudflare Workers** template > **Use template** or go to **Create Custom Token** > **Get started**. If you create a custom token, you will need to make sure to add the **Cloudflare Pages** permission with **Edit** access.
3. Go to **Deployments** > **All deployments** > and select the latest version.
92
93
93
94
If you were previously relying on the default versions of any languages or tools in the build system, your build may fail when migrating to v3. To fix this, you must specify the version you wish to use by [overriding](/pages/configuration/build-image/#overriding-default-versions) the default versions.
Copy file name to clipboardExpand all lines: src/content/docs/pages/configuration/debugging-pages.mdx
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,17 @@ banner:
8
8
id: pages-migrate-to-workers
9
9
---
10
10
11
+
import { DashButton } from"~/components";
12
+
11
13
When setting up your Pages project, you may encounter various errors that prevent you from successfully deploying your site. This guide gives an overview of some common errors and solutions.
12
14
13
15
## Check your build log
14
16
15
17
You can review build errors in your Pages build log. To access your build log:
16
18
17
-
1.Log in to the [Cloudflare dashboard](https://dash.cloudflare.com).
18
-
2.In **Account Home**, go to **Workers & Pages**.
19
-
3.In **Overview**, select your Pages project > **View build**.
3.Go to **Deployments** > **View details**> **Build log**.
20
22
21
23

Copy file name to clipboardExpand all lines: src/content/docs/pages/configuration/deploy-hooks.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ banner:
8
8
id: pages-migrate-to-workers
9
9
---
10
10
11
+
import { DashButton } from"~/components";
12
+
11
13
With Deploy Hooks, you can trigger deployments using event sources beyond commits in your source repository. Each event source may obtain its own unique URL, which will receive HTTP POST requests in order to initiate new deployments. This feature allows you to integrate Pages with new or existing workflows. For example, you may:
12
14
13
15
- Automatically deploy new builds whenever content in a Headless CMS changes
@@ -16,10 +18,9 @@ With Deploy Hooks, you can trigger deployments using event sources beyond commit
16
18
17
19
To create a Deploy Hook:
18
20
19
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
20
-
2. In Account Home, select **Workers & Pages**.
21
-
3. In **Overview**, select your Pages project.
22
-
4. Go to **Settings** > **Builds & deployments** and select **Add deploy hook** to start configuration.
2. Select your project and find the deployment you would like to view.
16
17
17
18
Every time you open a new pull request on your GitHub repository, Cloudflare Pages will create a unique preview URL, which will stay updated as you continue to push new commits to the branch. This is only true when pull requests originate from the repository itself.
18
19
@@ -44,10 +45,9 @@ By default, preview deployments are enabled and available publicly. In your proj
44
45
45
46
To protect your preview deployments behind Cloudflare Access:
46
47
47
-
1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/login).
48
-
2. In Account Home, select **Workers & Pages**.
49
-
3. In **Overview**, select your Pages project.
50
-
4. Go to **Settings** > **General** > and select **Enable access policy**.
3. Go to **Settings** > **General** > and select **Enable access policy**.
51
51
52
52
Note that this will only protect your preview deployments (for example, `373f31e2.user-example.pages.dev` and every other randomly generated preview link) and not your `*.pages.dev` domain or custom domain.
[React](https://reactjs.org/) is a popular framework for building reactive and powerful front-end applications, built by the open-source team at Facebook.
14
14
@@ -53,8 +53,8 @@ npm run dev
53
53
54
54
### Deploy via the Cloudflare dashboard
55
55
56
-
1.Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/)and select your account.
[Vite](https://vitejs.dev) is a next-generation build tool for front-end developers. With [the release of Vite 3](https://vitejs.dev/blog/announcing-vite3.html), developers can make use of new command line (CLI) improvements, starter templates, and [more](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#300-2022-07-13) to help build their front-end applications.
14
14
@@ -67,8 +67,8 @@ git push
67
67
68
68
To deploy your site to Pages:
69
69
70
-
1.Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/)and select your account.
0 commit comments