Skip to content

Commit 0f966ed

Browse files
rename worker project so the server will deploy (#6)
* rename worker project so the server will deploy * attach real kvs * update package version
1 parent 9be4a04 commit 0f966ed

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

README.cloudflare/README.cloudflare.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
5. Each time you add an app, you will see it appear in your "Workers & Pages" Overview:
1414
![](./img/4%20-%20dashboard.jpg)
1515

16-
6. Go into your new app, click the "Settings" tab, and edit the "Build configuration" to match the following:
17-
18-
- Build command: `pnpm run client build`
19-
- Build output: `client/dist`
20-
2116
6. Add the following variables under "Variables and Secrets" so that the build command can run in the correct environment:
2217
| Type | Name | Value |
2318
| --- | --- | --- |
@@ -55,14 +50,14 @@
5550

5651
```diff
5752
[env.stage]
58-
- name = "todo:rename-stage"
53+
- name = "todo-rename-stage"
5954
+ name = "my-app-stage"
6055
workers_dev = true
6156
- vars = { ALLOWED_HOST = "todo:rename to stage host", ENV = "stage" }
6257
+ vars = { ALLOWED_HOST = "my-app-stage.pages.dev", ENV = "stage" }
6358
[[env.stage.kv_namespaces]]
6459
binding = "DB"
65-
- id = "todo:stage-db-id"
60+
- id = "e0c5eee53ed34ff69c4d8303f818adca"
6661
+ id = "fThh47jB971c4GP452h75cP7jqE499mL"
6762
```
6863

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.20",
4+
"version": "0.0.21",
55
"description": "Starter package for react spa with cloudflare pages, workers, and kv",
66
"bin": "./bin/cli.js",
77
"scripts": {

server/wrangler.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ binding = "TEST_DB"
1616
id = "test-db"
1717

1818
[env.stage]
19-
name = "todo:rename-stage"
19+
name = "todo-rename-stage"
2020
workers_dev = true
2121
vars = { ALLOWED_HOST = "todo:rename to stage host", ENV = "stage" }
2222
[[env.stage.kv_namespaces]]
2323
binding = "DB"
24-
id = "todo:stage-db-id"
24+
id = "e0c5eee53ed34ff69c4d8303f818adca"
2525

2626
[env.prod]
27-
name = "todo:rename-prod"
27+
name = "todo-rename-prod"
2828
workers_dev = true
2929
vars = { ALLOWED_HOST = "todo:rename to prod host", ENV = "prod" }
3030
[[env.prod.kv_namespaces]]
3131
binding = "DB"
32-
id = "todo:prod-db-id"
32+
id = "2431c6957e9e4a7cb4fa61f284793b98"

0 commit comments

Comments
 (0)