Skip to content

Commit 66fd19d

Browse files
committed
docs: update README deployment instructions to reflect deploy:prod script
1 parent 327012d commit 66fd19d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ npm run dev # http://localhost:5173
2828
| `npm run build` | Type-check (`tsc -b`) and build for production into `dist/`. |
2929
| `npm run lint` | Run ESLint over the codebase. |
3030
| `npm run preview`| Preview the production build locally. |
31-
| `npm run deploy` | Build and deploy `dist/` to Cloudflare Pages via Wrangler. |
31+
| `npm run deploy` | Build and deploy `dist/` to Cloudflare Pages via Wrangler. |
32+
| `npm run deploy:prod`| Push to GitHub, then build and deploy to Cloudflare Pages. |
3233

3334
## Project layout
3435

@@ -49,14 +50,16 @@ output/ Phase-1 audit, redesign brief, swarm-voting outputs
4950

5051
## Deployment
5152

52-
Pushes to `main` are intended to trigger a Cloudflare Pages build (connect the
53-
repo under **Pages → Settings → Builds & deployments**). Build command:
54-
`npm run build`; output directory: `dist`.
53+
Push code to GitHub and deploy to Cloudflare Pages in one step:
5554

56-
For ad-hoc deploys without the Git integration:
55+
```bash
56+
npm run deploy:prod # git push origin main + build + deploy via wrangler
57+
```
58+
59+
For a build-and-deploy without pushing to Git:
5760

5861
```bash
59-
npm run deploy # builds and uploads dist/ via wrangler
62+
npm run deploy # build and upload dist/ via wrangler
6063
```
6164

6265
## License

0 commit comments

Comments
 (0)