This project is a Cloudflare Workers application that processes incoming HTTP requests, performs HTML rewriting, and handles variable replacements in the response.
- Fetches and processes incoming HTTP requests.
- Rewrites HTML content using
HTMLRewriter. - Replaces variables in the response content based on predefined mappings.
- Clone the repository:
git clone https://github.com/cf-jongsik/esi-workers.git
cd esi-workers- Install dependencies:
npm installTo start the development server, run:
npm run devTo build the project for production, run:
npm run buildTo deploy the project to Cloudflare Workers, run:
npm run deploy