Skip to content

Commit d9b9ba1

Browse files
committed
Merge branch 'stagehand-zod3' of https://github.com/ruifigueira/cloudflare-docs into pr/25720
2 parents 3f18bd4 + ea8424d commit d9b9ba1

File tree

20 files changed

+198
-107
lines changed

20 files changed

+198
-107
lines changed
97.3 KB
Loading

src/content/docs/analytics/graphql-api/getting-started/authentication/api-token-auth.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sidebar:
55
order: 21
66
---
77

8+
import { DashButton } from "~/components";
9+
810
Cloudflare recommends API tokens as the preferred authentication method with Cloudflare APIs. This article walks through creating API tokens for authentication to the GraphQL Analytics API.
911

1012
For more details on API tokens and the full range of supported options, refer to [Creating API tokens](/fundamentals/api/get-started/create-token/).
@@ -18,15 +20,11 @@ To create an API token for authentication to the GraphQL Analytics API, use this
1820

1921
## Access the Create API Token page
2022

21-
To access the **Create Custom Token** page, follow these steps:
22-
23-
1. Log in to your Cloudflare account and select _My Profile_ from the user account drop-down list.
24-
25-
![User account drop-down menu](~/assets/images/analytics/account-profile.png)
23+
1. In the Cloudflare dashboard, go to the **Account API tokens** page.
2624

27-
2. In your user profile page, select the **API Tokens** tab.
25+
<DashButton url="/?to=/:account/api-tokens" />
2826

29-
3. In the **API Tokens** page, select **Create Token**.
27+
2. Select **Create Token**.
3028

3129
![API Tokens tab](~/assets/images/analytics/user-profile-api-tokens-tab.png)
3230

src/content/docs/argo-smart-routing/get-started.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ head: []
77
description: Learn how to enable Argo Smart Routing in the Cloudflare dashboard.
88
---
99

10-
import { Render, TabItem, Tabs } from "~/components";
10+
import { Render, TabItem, Tabs, DashButton } from "~/components";
1111

1212
<Render file="smart-shield-callout" product="smart-shield" />
1313

@@ -17,10 +17,12 @@ Argo Smart Routing is a one-click solution to speed up your global traffic.
1717

1818
To enable [Argo Smart Routing](https://dash.cloudflare.com/?to=/:account/:zone/traffic) in the dashboard:
1919

20-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
21-
2. Go to **Traffic** > **Argo Smart Routing**.
22-
3. For **Argo Smart Routing**, switch the toggle to **On**.
23-
4. Provide your billing information.
20+
1. In the Cloudflare dashboard, go to the **Argo Smart Routing** page.
21+
22+
<DashButton url="/?to=/:account/:zone/traffic" />
23+
24+
2. For **Argo Smart Routing**, switch the toggle to **On**.
25+
3. Provide your billing information.
2426

2527
- If you do not have a [billing profile](/billing/create-billing-profile/), enter your billing information.
2628

src/content/docs/automatic-platform-optimization/get-started/activate-cf-wp-plugin.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar:
66

77
---
88

9+
import { DashButton } from "~/components";
10+
911
After you [change your nameservers](/automatic-platform-optimization/get-started/change-nameservers/), activate the Cloudflare WordPress plugin.
1012

1113
## Prerequisites
@@ -54,13 +56,15 @@ To create the connection between WordPress and Cloudflare, you will create an AP
5456

5557
## Create the API token from Cloudflare
5658

57-
1. Open your Cloudflare dashboard.
58-
2. Select **My Profile** from the top of the page.
59-
3. Select **API Tokens** > **Create Token**.
60-
4. Locate **WordPress** from the list and select **Use template**.
61-
5. Select **Continue to summary** at the bottom of the page.
62-
6. On the **WordPress API token summary** page, select **Create Token**. Your API token displays.
63-
7. Select the **Copy** button to copy your token. You will need to paste the token in the next section.
59+
1. In the Cloudflare dashboard, go to the **Account API tokens** page.
60+
61+
<DashButton url="/?to=/:account/api-tokens" />
62+
63+
2. Select **Create Token**.
64+
3. Locate **WordPress** from the list and select **Use template**.
65+
4. Select **Continue to summary** at the bottom of the page.
66+
5. On the **WordPress API token summary** page, select **Create Token**. Your API token displays.
67+
6. Select the **Copy** button to copy your token. You will need to paste the token in the next section.
6468

6569
:::note
6670

src/content/docs/browser-rendering/platform/stagehand.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,21 @@ Then, in your Worker code, import the `workersAIClient.ts` file and use it to co
168168

169169
:::note
170170
The snippet above requires [Zod v3](https://v3.zod.dev/) and is currently not compatible with Zod v4.
171+
172+
Ensure your `package.json` has the following dependencies:
173+
174+
```json
175+
{
176+
// ...
177+
"dependencies": {
178+
"@browserbasehq/stagehand": "^2.5.0",
179+
"@cloudflare/playwright": "^1.0.0",
180+
"zod": "^3.25.76",
181+
"zod-to-json-schema": "^3.24.6"
182+
// ...
183+
}
184+
}
185+
```
171186
:::
172187

173188
### 4. Build the project

src/content/docs/data-localization/how-to/cloudflare-for-saas.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 5
66
---
77

8-
import { TabItem, Tabs } from "~/components";
8+
import { TabItem, Tabs, DashButton } from "~/components";
99

1010
In the following sections, we will give you some details about how to configure Cloudflare for SaaS with Regional Services and Customer Metadata Boundary.
1111

@@ -15,9 +15,11 @@ To configure Regional Services for both hostnames [proxied](/dns/proxy-status/)
1515

1616
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
1717

18-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select an account and zone.
19-
2. Go to the **Custom Hostnames** tab.
20-
3. Follow these steps to [configure Cloudflare for SaaS](/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/).
18+
1. In the Cloudflare dashboard, go to the **Custom Hostnames** page.
19+
20+
<DashButton url="/?to=/:account/:zone/ssl-tls/custom-hostnames" />
21+
22+
2. Follow these steps to [configure Cloudflare for SaaS](/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/).
2123

2224
</TabItem>
2325

src/content/docs/data-localization/metadata-boundary/get-started.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 2
66
---
77

8-
import { Details, APIRequest } from "~/components";
8+
import { Details, APIRequest, DashButton } from "~/components";
99

1010
You can configure the Metadata Boundary to select the region where your logs and analytics are stored via API or dashboard.
1111

@@ -15,9 +15,11 @@ Currently, this can only be applied at the account-level. If you only want the M
1515

1616
To configure Customer Metadata Boundary in the dashboard:
1717

18-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account.
19-
2. Go to **Manage Account** > **Configurations**.
20-
3. In **Customer Metadata Boundary**, select the region you want to use. You have the option to select `EU` or `US`. If you want to select both regions, select `Global` instead.
18+
1. In the Cloudflare dashboard, go to the **Settings** page.
19+
20+
<DashButton url="/?to=/:account/configurations" />
21+
22+
2. In **Customer Metadata Boundary**, select the region you want to use. You have the option to select `EU` or `US`. If you want to select both regions, select `Global` instead.
2123

2224
## Configure Customer Metadata Boundary via API
2325

@@ -71,6 +73,9 @@ Here is an example request using cURL to delete regions:
7173

7274
To view or change your Customer Metadata Boundary setting:
7375

74-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
75-
2. Go to **Manage Account** > **Configurations** > **Preferences**.
76+
1. In the Cloudflare dashboard, go to the **Settings** page.
77+
78+
<DashButton url="/?to=/:account/configurations" />
79+
80+
2. Go to **Preferences**.
7681
3. Locate the **Customer Metadata Boundary** section.

src/content/docs/data-localization/regional-services/get-started.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ head:
88
content: Get Started — Regional Services
99
---
1010

11-
import { Details, APIRequest } from "~/components";
11+
import { Details, APIRequest, DashButton } from "~/components";
1212

1313
:::note
1414

@@ -22,10 +22,12 @@ You can use Regional Services through the dashboard or via API.
2222

2323
To use Regional Services, you need to first create a DNS record in the dashboard:
2424

25-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select an account and domain.
26-
2. Go to the **DNS** tab.
27-
3. Follow these steps to [create a DNS record](/dns/manage-dns-records/how-to/create-dns-records/).
28-
4. From the **Region** dropdown, select the region you would like to use on your domain. This value will be applied to all DNS records on the same hostname. This means that if you have two DNS records of the same hostname and change the region for one of them, both records will have the same region.
25+
1. In the Cloudflare dashboard, go to the **Records** page.
26+
27+
<DashButton url="/?to=/:account/:zone/dns/records" />
28+
29+
2. Follow these steps to [create a DNS record](/dns/manage-dns-records/how-to/create-dns-records/).
30+
3. From the **Region** dropdown, select the region you would like to use on your domain. This value will be applied to all DNS records on the same hostname. This means that if you have two DNS records of the same hostname and change the region for one of them, both records will have the same region.
2931

3032
:::note
3133

src/content/docs/health-checks/get-started.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ sidebar:
66

77
---
88

9-
import { Render } from "~/components";
9+
import { Render, DashButton } from "~/components";
1010

1111
<Render file="smart-shield-callout" product="smart-shield" />
1212

1313
This guide will get you started with creating and managing configured Health Checks.
1414

1515
## Create a Health Check
1616

17-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
18-
2. Go to **Traffic** > **Health Checks**.
19-
3. Select **Create** and fill out the form, paying special attention to:
17+
1. In the Cloudflare dashboard, go to the **Health Checks** page.
18+
19+
<DashButton url="/?to=/:account/:zone/traffic/health-checks" />
20+
21+
2. Select **Create** and fill out the form, paying special attention to:
2022
* The values for **Interval** and **Check regions**, because decreasing the **Interval** and increasing **Check regions** may increase the load on your origin server.
2123
* **Retries**, which specify the number of retries to attempt in case of a timeout before marking the origin as unhealthy.
22-
4. Select **Save and Deploy**.
24+
3. Select **Save and Deploy**.
2325

2426
## Manage Health Checks
2527

src/content/docs/health-checks/health-checks-analytics.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ sidebar:
66

77
---
88

9-
import { AvailableNotifications, Render } from "~/components"
9+
import { AvailableNotifications, Render, DashButton } from "~/components"
1010

1111
<Render file="smart-shield-callout" product="smart-shield" />
1212

1313
Once you have set up a standalone Health Check including notification emails, use Health Check Analytics to debug possible origin issues.
1414

1515
To access health check analytics:
1616

17-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
18-
2. Go to **Traffic** > **Health Check Analytics**.
17+
1. In the Cloudflare dashboard, go to the **Health Check Analytics** page.
18+
19+
<DashButton url="/?to=/:account/:zone/traffic/health-check-analytics" />
1920

2021
<Render file="health-checks-analytics" product="smart-shield" />
2122

0 commit comments

Comments
 (0)