A Cloudflare Worker that caches RPC queries on the edge for Cosmos SDK nodes.
npm run dev
# OR
wrangler dev --local --persist
-
Copy
wrangler.toml.example
towrangler.toml
. -
Deploy to Cloudflare:
wrangler publish # OR npm run deploy
-
In the Cloudflare Worker dashboard, under Triggers, add a route that assigns the Worker to run in front of your RPC route.
wrangler publish
# OR
npm run deploy