A Cloudflare Worker driving serverless web 1.0 content (you heard that right), easter eggs and fun to the planet-earth
region, for my personal net, racer159.net.
Note: You must use wrangler 1.17 or newer for development of this worker.
This worker uses the Wrangler CLI for development. If you are not already familiar with the tool, it is recommended that you install the tool and configure it to work with your Cloudflare account. Documentation can be found here.
Run npm test
to execute the unit tests via Jest.
Run npm run lint
to execute linting via TS-ESLint.
For information on how to preview and publish your worker, please see the Wrangler docs.
The service-worker-mock
used by the tests is not a perfect representation of the Cloudflare Workers runtime. It is a general approximation. It's recommend that you test end to end with wrangler dev
in addition to a staging environment to test things before deploying.