See the full official documentation for the Human Security Akamai EdgeWorker Enforcer here.
- Install dependencies with
npm install. - Configure the enforcer by modifying the
enforcerConfig.jsonfile. - Configure any custom functions by modifying the
src/customFunctions.tsfile, if needed. - Compile the worker with
npm run build:worker. - Configure the Akamai details by modifying the
akamaiConfig.json. It should contain the following fields:- The
edgeworker_idshould be the ID associated with the EdgeWorker you will upload to (e.g., 12345). - The
netstorage_cp_codeshould be the content provider code associated with the NetStorage account to which the HUMAN static files will be added (e.g., 1234567). - The
netstorage_download_domainshould be the download domain name associated with the NetStorage account where the HUMAN static files will be added (e.g., example.download.akamai.com).
- The
- Generate Property Manager and NetStorage deployment files with
npm run build:akamai.