API Hello World
Here's a high-level overview of the steps required to activate the Hello World code sample using the EdgeWorkers API.
Request enhanced debug headers
To return detailed debugging information for your EdgeWorkers functions follow the instructions in the Enhanced debug headers section.
Refer to the comprehensive API documentation for a complete list of endpoints.
Step | Link | Description |
---|---|---|
1 | Create an EdgeWorker ID | Create an EdgeWorker ID to activate and manage your Hello World code bundle. |
2 | Add the EdgeWorkers behavior | Select the EdgeWorker ID you created for the Hello World tutorial when you add the EdgeWorkers behavior. |
3 | Create the Hello World code bundle | Go to the EdgeWorkers GitHub repository and download the main.js and bundle.json files from the hello-world project. |
4 | Deploy Hello World | To deploy your Hello World code bundle you need to create a version and activate it on the staging or production network. |
5 | Test Hello World | To test the Hello World code sample make a request to exercise the EdgeWorker and note the response. |
Updated 9 months ago