Create the Hello World code bundle
Your Hello World code bundle must contain the main.js and bundle.json files. See code bundle format for more information.
-
Create a folder on your computer for the code bundle files.
-
Go to the EdgeWorkers GitHub repository and download the
main.jsandbundle.jsonfiles from the helloworld project or create them using the values below. -
Use the Hello World code sample to create the JavaScript source in a file called
main.js.
👍 When you start creating your own EdgeWorkers functions you can use the built-in Code bundle editor to validate and edit your
bundle.jsonandmain.jsfiles.
📘 Each time you want to activate a new EdgeWorkers code bundle or update an existing EdgeWorkers code bundle you need to create a new version number.
- Compress the files into a code bundle.
- Next, follow these instructions to deploy the Hello World code bundle.