The code bundle editor is built-in to the EdgeWorkers Management application. You can use this custom tool to edit your EdgeWorkers without having to set up an integrated development environment or use a command line interface.
This tool is useful as a quick editor so you can view, validate, and edit the
main.js files in your code bundles.
Log in to Control Center.
Go to ☰ > CDN > EdgeWorkers.
Select the EdgeWorker ID you want to edit.
Select an EdgeWorker version from the EdgeWorker details page to edit an existing EdgeWorker version.
Select the Code Bundle tab.
The files included in the EdgeWorker version appear in the Code bundle editor.
You can also use the code bundle editor to create an EdgeWorker version.
- Review these features to learn how the code bundle editor can help you validate and edit your EdgeWorkers.
|1. File tree||Navigate between your EdgeWorkers by selecting a folder in the file tree. Open the |
|2. Code editor||View the contents of the file you selected in the file tree. Here you can also view semantic and syntax validation. To save any changes you've made you need to create a new EdgeWorker version. Do this by manually typing in a new EdgeWorker version number.|
|3. Validation section||View any validation errors. You cannot save an EdgeWorkers code bundle that contains validation errors.|
|4. Save as new version||The Save as new version button remains inactive until you update the EdgeWorker version number and resolve any validation errors. The Activate version button is only enabled when a valid version is available.|
Updated 5 months ago