https://edgio-community-examples-v7-ef-htmltransform-live.edgio.link/
This repository provides example code for transforming HTML content using Edge Functions. It features examples of how to modify the content using the HtmlTransformer
class along with Edge Side Includes and streaming responses to the transformer
NOTE: To use this project, you must be an Edgio customer and signed up for the Edge Functions. See our Edge Functions documentation for information on activating this feature.
The system requirements include Node.js v18 or higher, and a UNIX-like system (Linux or macOS). The project code is written in JavaScript.
- Ensure you meet the prerequisites.
- Clone the repository to your local machine.
- Run
npm install
in the repository directory.
After setting up the project, run npm run edgio:dev
to start a local development server to test the example functions.
To deploy the project to Edgio, use the command npm run edgio:deploy
. Note that deployment to Edgio requires you to be
logged into Edgio CLI which can be done via npm run edgio login
and following the instructions.
If you have any queries or face issues with this project, please don't hesitate to contact the Edgio team.
Creative Commons Attribution 4.0 International Public License for the documentation.
MIT License for the code.