This repo contains the source code powering https://greenfielddemo.com/.
- Git
- Node (>=24.0.0), npm (>=11.0.0)
- A fork of the repo (for any contributions)
- A clone of the greenfielddemo repo on your local machine
npm installnpm run devopen http://localhost:5173to open the site in your favorite browser
www.greenfielddemo.com is served from Cloudflare Workers as static assets (see wrangler.toml).
npm run buildwrites the site todist/.worker/index.jsproxiesPOST /api/eventto Plausible; every other path is a static asset.- Merging a PR into
mainrequires the Ready for merge check and the Cloudflare Workers preview build to pass. - Cloudflare Workers Builds watches
mainand deploys on merge. Nothing deploys from GitHub Actions. public/_headerssets the CSP and is copied intodist/by the build.npm run deploydeploys by hand with your own Cloudflare login. Normally unnecessary.