This is the bare minimum steps required to get the proxy working. Adapt to your needs:
- Follow Cloudflare's guide for creating your first worker with the "Worker only" template and "Typescript" for the language.
- Copy the contents of
index.tsto the localsrc/index.tsfile - Copy the contents of
wrangler.jsoncto your local file - Update the
proxyUrlandproxyHostnameinindex.tsto point to your Easy Digital Downloads installation - Run
npx wrangler types --experimental-include-runtimeto regenerate typescript support the the rate limit bindings - Run
npx wrangler devand test the proxy works - Run
npx wrangler deployto push the code to Cloudflare