2026-11-22
Edge workers run a module on this server that works the way a Cloudflare Worker does: an ES module with a default export that receives each request. Each worker has a name, a compatibility date, its code and its bindings.
Deploy a worker
- Open Hosting in the sidebar, then Edge Workers.
- Type a Name, for example shop.
- Keep the Compatibility date, or change it.
- Paste the code into Code: an ES module with a default export. The box starts with an example that returns a plain-text reply.
- Type the Bindings, one per line as NAME=value, if the code needs them.
- Press Deploy worker.

Bindings are values, not code
A binding is a value the code reads from its environment, such as an API key. Put secrets in the bindings, and keep them out of the code itself. The example in the page shows the form, not a real value.
