A simple implementation of Cloudflare worker reverse proxy project.
This project is meant to be used with Wrangler. If you are not already familiar with the tool, we recommend that you install the tool and configure it to work with your Cloudflare account. Documentation can be found here.
src/index.js
calls the request handler in src/handler.ts
, and will return the request method for the given request.
This template comes with mocha tests which simply test that the request handler can handle each request method. npm test
will run your tests.
This template uses prettier
to format the project. To invoke, run npm run format
.
For information on how to preview and publish your worker, please see the Wrangler docs.