https://github.com/cf-jongsik/esi-workers
ESI workers
https://github.com/cf-jongsik/esi-workers
cloudflare cloudflare-workers esi
Last synced: 2 months ago
JSON representation
ESI workers
- Host: GitHub
- URL: https://github.com/cf-jongsik/esi-workers
- Owner: cf-jongsik
- Created: 2024-06-19T19:49:52.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-02T17:42:54.000Z (4 months ago)
- Last Synced: 2025-02-02T18:19:01.513Z (4 months ago)
- Topics: cloudflare, cloudflare-workers, esi
- Language: TypeScript
- Homepage: https://blog.cloudflare.com/edge-side-includes-with-cloudflare-workers
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESI Workers
This project is a Cloudflare Workers application that processes incoming HTTP requests, performs HTML rewriting, and handles variable replacements in the response.
## Features
- Fetches and processes incoming HTTP requests.
- Rewrites HTML content using `HTMLRewriter`.
- Replaces variables in the response content based on predefined mappings.## Installation
1. Clone the repository:
```sh
git clone https://github.com/cf-jongsik/esi-workers.git
cd esi-workers
```2. Install dependencies:
```sh
npm install
```## Usage
To start the development server, run:
```sh
npm run dev
```To build the project for production, run:
```sh
npm run build
```## Deployment
To deploy the project to Cloudflare Workers, run:
```sh
npm run deploy
```