This repository is archived and unmaintained. Use at your own risk.
A barebones example of using Gatsby Cloud to deploy to Cloudflare Workers.
- Fork this repository.
- Add your site to Gatsby Cloud.
- Set the
CF_ACCOUNT_ID
andCF_API_TOKEN
environment variables in Gatsby Cloud.- You can generate a new Cloudflare API token by running
wrangler login
on your local machine. - You can retrieve your Cloudflare Account ID on your Cloudflare Workers overview page.
- You can generate a new Cloudflare API token by running
- Watch your Gatsby Cloud site build and deploy to your Cloudflare Workers dev domain.