My personal website using Gatsby deployed with Wrangler as a Cloudflare Workers Site.
To build the site locally, simply run:
cd ~/path/to/project/root
gatsby build
To spin up an instance of the development server:
cd ~/path/to/project/root
gatsby develop
Merges to master are automatically published to a workers.dev domain.
To deploy manually to staging:
wrangler login
wrangler publish --env staging
Production deploys rely on semantically versioned git tags. To deploy a new production release, simply add a new versioned git tag and merge to master. Releases are automatically deployed to chaoticdesign.io.
To deploy manually to production:
wrangler login
wrangler publish --env production