Skip to content

Deploy www.greenfielddemo.com from Cloudflare Workers - #30

Merged
dickhardt merged 3 commits into
mainfrom
cloudflare
Sep 6, 2026
Merged

Deploy www.greenfielddemo.com from Cloudflare Workers#30
dickhardt merged 3 commits into
mainfrom
cloudflare

Conversation

@dickhardt

Copy link
Copy Markdown
Member

Do not merge until the Cloudflare side is live. main is production for this repo and the AWS sync workflow is removed here.

Same shape as hellocoop/hello.dev#110 and hellocoop/playground#100:

  • S3/dist/; wrangler.toml for Workers static assets (custom domain route commented out until attached).
  • worker/index.js proxies POST /api/event to Plausible, which CloudFront used to do.
  • public/_headers carries the CSP from CDN/cdk/lib/csp.ts.
  • .github/workflows/sync.yml removed; merge.yml stays as the required PR check.
  • .nvmrc 24, wrangler dev dependency, deploy script, README section.

Cutover: Workers Builds project www-greenfielddemo-com connected to this repo; delete the www.greenfielddemo.com CloudFront CNAME in the Cloudflare zone and attach the custom domain; apex redirect rule on the zone; flip production branch to main; merge; destroy GreenfieldStack.

Verified locally: npm run build into dist/ and wrangler deploy --dry-run both pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TUaEMyd8MGXZpFA4jHVm6E

dickhardt and others added 2 commits September 6, 2026 18:52
…f AWS

Rename the Vite output dir S3/ to dist/, add wrangler.toml for Workers
static assets, a small worker that proxies POST /api/event to Plausible
(CloudFront did this before), and public/_headers with the CSP. Remove
the AWS S3 sync workflow; Cloudflare Workers Builds deploys main on
merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TUaEMyd8MGXZpFA4jHVm6E
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 6, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
www-greenfielddemo-com 7915a18 Sep 06 2026, 06:02 PM

@dickhardt
dickhardt marked this pull request as ready for review September 6, 2026 18:09
@dickhardt
dickhardt merged commit 86aafd8 into main Sep 6, 2026
2 checks passed
@dickhardt
dickhardt deleted the cloudflare branch September 6, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant