diff --git a/README.cloudflare/README.cloudflare.md b/README.cloudflare/README.cloudflare.md index 153465c..998c5ea 100644 --- a/README.cloudflare/README.cloudflare.md +++ b/README.cloudflare/README.cloudflare.md @@ -13,11 +13,6 @@ 5. Each time you add an app, you will see it appear in your "Workers & Pages" Overview: ![](./img/4%20-%20dashboard.jpg) -6. Go into your new app, click the "Settings" tab, and edit the "Build configuration" to match the following: - -- Build command: `pnpm run client build` -- Build output: `client/dist` - 6. Add the following variables under "Variables and Secrets" so that the build command can run in the correct environment: | Type | Name | Value | | --- | --- | --- | @@ -55,14 +50,14 @@ ```diff [env.stage] -- name = "todo:rename-stage" +- name = "todo-rename-stage" + name = "my-app-stage" workers_dev = true - vars = { ALLOWED_HOST = "todo:rename to stage host", ENV = "stage" } + vars = { ALLOWED_HOST = "my-app-stage.pages.dev", ENV = "stage" } [[env.stage.kv_namespaces]] binding = "DB" -- id = "todo:stage-db-id" +- id = "e0c5eee53ed34ff69c4d8303f818adca" + id = "fThh47jB971c4GP452h75cP7jqE499mL" ``` diff --git a/package.json b/package.json index 73598b2..314b90b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-react-spa-cloudflare", "type": "module", - "version": "0.0.20", + "version": "0.0.21", "description": "Starter package for react spa with cloudflare pages, workers, and kv", "bin": "./bin/cli.js", "scripts": { diff --git a/server/wrangler.toml b/server/wrangler.toml index 56a7598..e9dbcaa 100644 --- a/server/wrangler.toml +++ b/server/wrangler.toml @@ -16,17 +16,17 @@ binding = "TEST_DB" id = "test-db" [env.stage] -name = "todo:rename-stage" +name = "todo-rename-stage" workers_dev = true vars = { ALLOWED_HOST = "todo:rename to stage host", ENV = "stage" } [[env.stage.kv_namespaces]] binding = "DB" -id = "todo:stage-db-id" +id = "e0c5eee53ed34ff69c4d8303f818adca" [env.prod] -name = "todo:rename-prod" +name = "todo-rename-prod" workers_dev = true vars = { ALLOWED_HOST = "todo:rename to prod host", ENV = "prod" } [[env.prod.kv_namespaces]] binding = "DB" -id = "todo:prod-db-id" +id = "2431c6957e9e4a7cb4fa61f284793b98"