You can use Sandbox to test EdgeWorkers functions locally and iterate before deploying them to the content delivery network.
Run this command to add an
EdgeWorker IDto the sandbox.
akamai sandbox add-edgeworker <edgeworker-id> <edgeworker-tarball>
Use curl or a browser to test the functionality.
Curl: Run this command
curl --header 'Host: www.example.com' http://127.0.0.1:9550/
Browser: Open your /etc/hosts file and point the
hostnameassociated with the property configuration to
127.0.0.1, then enter
http://<your-hostname>:9550in your browser.
Run this command every time you update your EdgeWorkers code.
akamai sandbox update-edgeworker <edgeworker-id> <edgeworker-tarball>
Updated almost 2 years ago