@@ -6,29 +6,29 @@ The new `website/` directory is the docs and marketing site for Bub.
66
77Legacy MkDocs source files may still exist in the repository during the
88transition, but production deployment now targets the Astro site on
9- Cloudflare Pages .
9+ Cloudflare Workers .
1010
11- ## Cloudflare Pages
11+ ## Cloudflare Workers
1212
13- Connect the repository to a Cloudflare Pages project with Git integration.
13+ Connect the repository to a Cloudflare Worker using Git integration.
1414
1515Recommended settings:
1616
17- - Production branch: ` main `
18- - Root directory: ` website `
17+ - Project name: ` bub-website `
1918- Build command: ` pnpm install --frozen-lockfile && pnpm build `
20- - Build output directory: ` dist `
19+ - Deploy command: ` pnpm wrangler deploy `
20+ - Path: ` website `
2121- Environment variable: ` SITE_URL=https://bub.build `
2222- Environment variable: ` NODE_VERSION=22.16.0 `
2323
2424The repo also includes [ wrangler.jsonc] ( ./wrangler.jsonc ) so local preview and
25- Cloudflare Pages runtime settings stay aligned:
25+ Cloudflare Workers runtime settings stay aligned:
2626
27- - ` pages_build_output_dir = "./dist"`
27+ - ` main = "./node_modules/@astrojs/cloudflare/ dist/entrypoints/server.js "`
2828- ` compatibility_flags = ["nodejs_compat"] `
2929
30- Production deployment is driven by GitHub release automation instead of
31- push-based auto deploys .
30+ Production deployment is handled by Cloudflare Workers Git integration instead of
31+ GitHub Actions .
3232
3333## Current Repo State
3434
@@ -40,18 +40,20 @@ The local developer entrypoints now target the new site:
4040
4141The CI docs check also builds ` website/ ` instead of MkDocs.
4242
43- ## GitHub Actions Deployment
43+ ## GitHub Actions and Cloudflare Responsibilities
4444
4545The deployment split is intentionally simple:
4646
4747- ` main.yml ` only verifies that the website builds
48- - ` on-release-main.yml ` deploys production when a GitHub release is published
48+ - ` on-release-main.yml ` only handles package release tasks
49+ - Cloudflare Workers deploys the website from the connected repository
4950
50- Required repository configuration:
51+ Required Cloudflare Workers project configuration:
5152
52- - GitHub Actions secret: ` CLOUDFLARE_API_TOKEN `
53- - GitHub Actions secret: ` CLOUDFLARE_ACCOUNT_ID `
54- - GitHub Actions variable: ` CLOUDFLARE_PAGES_PROJECT_NAME `
53+ - Git integration enabled for this repository
54+ - Build command set to ` pnpm install --frozen-lockfile && pnpm build `
55+ - Deploy command set to ` pnpm wrangler deploy `
56+ - Working directory set to ` website `
5557
5658## Cutover Later
5759
0 commit comments