Skip to content

Commit 9be4a04

Browse files
Merge pull request #5 from codenickycode/update-project-name-for-client-deploy
update project name so client deploy will succeed
2 parents 81c3e2a + f3435a9 commit 9be4a04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.cloudflare/README.cloudflare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ binding = "DB"
6969
18. Update the deploy scripts in [client/package.json](../client/package.json) to use your project name. Note: Pages allows a "Preview" branch, for all branches besides main. We use the same app name but provide `--branch "stage"` for our staging branch:
7070

7171
```diff
72-
- "deploy:stage": "pnpm wrangler pages deploy ./dist --project-name todo:rename --branch \"stage\"...,
72+
- "deploy:stage": "pnpm wrangler pages deploy ./dist --project-name todo-rename --branch \"stage\"...,
7373
+ "deploy:stage": "pnpm wrangler pages deploy ./dist --project-name my-app --branch \"stage\"...,
74-
- "deploy:prod": "pnpm wrangler pages deploy ./dist --project-name todo:rename",
74+
- "deploy:prod": "pnpm wrangler pages deploy ./dist --project-name todo-rename",
7575
+ "deploy:prod": "pnpm wrangler pages deploy ./dist --project-name my-app",
7676
```

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"build": "pnpm run build:server-types && tsc -b && vite build",
77
"build:server-types": "tsc -p ../server/tsconfig.shared.json --declaration --emitDeclarationOnly --outFile ./src/server-types.d.ts",
88
"build:test": "tsc -b && E2E=true vite build",
9-
"deploy:stage": "pnpm wrangler pages deploy ./dist --project-name todo:rename --branch \"stage\" --commit-hash \"$GITHUB_SHA\" --commit-message \"stage deployment\"",
10-
"deploy:prod": "pnpm wrangler pages deploy ./dist --project-name todo:rename",
9+
"deploy:stage": "pnpm wrangler pages deploy ./dist --project-name todo-rename --branch \"stage\" --commit-hash \"$GITHUB_SHA\" --commit-message \"stage deployment\"",
10+
"deploy:prod": "pnpm wrangler pages deploy ./dist --project-name todo-rename",
1111
"dev": "vite --host 0.0.0.0",
1212
"lint": "eslint .",
1313
"test": "vitest run",

0 commit comments

Comments
 (0)