Skip to content

Commit 6677e55

Browse files
committed
update cf docs
1 parent c363f37 commit 6677e55

10 files changed

+10
-8
lines changed

README.cloudflare/README.cloudflare.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
1. [Sign up for Cloudflare](https://www.cloudflare.com/) (they have a free tier)
22

3-
2. Create a Pages app to host the React client. From the Workers & Pages screen, choose "Create".
3+
2. Create a Pages app to host the React client. From the Compute - Workers & Pages screen, choose "Create".
44
![](./img/1%20-%20create%20pages.jpg)
55

6-
3. Select the "Pages" tab and click "Upload assets" from the "Create using direct upload" section.
6+
3. Select the "Pages" tab and click "Get started" in the "Use direct upload" section.
77
![](./img/2%20-%20direct%20upload.jpg)
88

9-
4. Name your app and click "Create". Note: You do not need to upload any assets and click "Deploy". The Wrangler CLI and GitHub actions will take care of that later.
9+
4. Name your app and click "Create". Note: You do not need to upload any assets and click "Deploy". The Wrangler CLI and GitHub actions will take care of that later. After creating, skip step 2 and go back to the overview screen.
1010

1111
![](./img/3a%20-%20name%20project.jpg)
1212

@@ -19,21 +19,23 @@
1919
| Plaintext | NODE_VERSION | 22.9.0 |
2020
| Plaintext | PNPM_VERSION | 9 |
2121

22-
7. Create a Workers app to host the prod server. From the Workers & Pages Overview page, click "Create" (like step 2), and then from the "Workers" tab, click "Create Worker".
22+
![](./img/settings%20add%20variables.jpg)
23+
24+
7. Create a Workers app to host the prod server. From the Workers & Pages Overview page, click "Create" (like step 2), and then from the "Workers" tab, click "Get started" in the section "Start with Hello World!".
2325
![](./img/7%20-%20create%20worker.jpg)
2426

2527
8. Name your worker and click "Deploy". Note: Ignore the `worker.js` code, as it will be overwritten by our app when we run our deploy script.
2628
![](./img/8%20-%20name%20worker%20and%20deploy.jpg)
2729

28-
9. Add a KV namespace for your prod server storage. Navigate to Workers & Pages - KV, and click "Create a namespace".
30+
9. Add a KV namespace for your prod server storage. Navigate to Storage & Databases - KV, and click "Create".
2931
![](./img/9%20-%20create%20namespace.jpg)
3032

31-
10. Enter a name for your prod server kv namespace, and click "Add".
33+
10. Enter a name for your prod server kv namespace, and click "Create".
3234
![](./img/10%20-%20add%20namespace.jpg)
3335

3436
11. Repeat steps 7-10 for your stage server and kv storage. Note: It might be useful to use suffix `-stage` in your naming.
3537

36-
12. On the right hand side of the Workers & Pages Overview screen, you can find your Account ID, as well as a link to "Manage API tokens":
38+
12. On the right hand side of the Compute - Workers & Pages Overview screen, you can find your Account ID, as well as a link to "Manage API tokens":
3739
![](./img/11%20-%20account%20id.jpg)
3840

3941
13. Create an API token for "Edit Cloudflare Workers", using the provided template.
34 KB
Loading
5.06 KB
Loading
8.62 KB
Loading
19 KB
Loading
58 KB
Loading
54.2 KB
Loading
9.74 KB
Loading
89.9 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "create-react-spa-cloudflare",
33
"type": "module",
4-
"version": "0.0.25",
4+
"version": "0.0.26",
55
"description": "Starter package for a React SPA with Cloudflare Pages, Workers, and KV",
66
"bin": "./bin/cli.js",
77
"scripts": {

0 commit comments

Comments
 (0)