Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ At a minimum, the `main_module` key is required to upload a Worker.

* The part name that contains the module entry point of the Worker that will be executed. For example, `main.js`.

* `assets` <Type text="object" /> <MetaInfo text="optional" />

* [Asset](/workers/static-assets/) configuration for a Worker.
* `config` <Type text="object" /> <MetaInfo text="optional" />
* [html_handling](/workers/static-assets/routing/#1-html_handling) determines the redirects and rewrites of requests for HTML content.
* [not_found_handling](/workers/static-assets/routing/#2-not_found_handling) determines the response when a request does not match a static asset, and there is no Worker script.
* `jwt` field provides a token authorizing assets to be attached to a Worker.

* `keep_assets` <Type text="boolean" /> <MetaInfo text="optional" />

* Specifies whether assets should be retained from a previously uploaded Worker version; used in lieu of providing a completion token.

* `bindings` array\[object] optional

* [Bindings](#bindings) to expose in the Worker.
Expand Down Expand Up @@ -126,6 +138,10 @@ Workers can interact with resources on the Cloudflare Developer Platform using [
"name": "<VARIABLE_NAME>",
"dataset": "<DATASET>"
},
{
"type": "assets",
"name": "<VARIABLE_NAME>"
},
{
"type": "browser_rendering",
"name": "<VARIABLE_NAME>"
Expand Down
Loading