Skip to content

Commit db93a5d

Browse files
WC-2683 Document Worker Assets bindings, metadata (#18048)
* WC-2683 Document Worker Assets bindings, metadata * Update src/content/docs/workers/configuration/multipart-upload-metadata.mdx * Kick CI --------- Co-authored-by: Greg Brimble <[email protected]>
1 parent 3067144 commit db93a5d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/content/docs/workers/configuration/multipart-upload-metadata.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ At a minimum, the `main_module` key is required to upload a Worker.
3939

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

42+
* `assets` <Type text="object" /> <MetaInfo text="optional" />
43+
44+
* [Asset](/workers/static-assets/) configuration for a Worker.
45+
* `config` <Type text="object" /> <MetaInfo text="optional" />
46+
* [html_handling](/workers/static-assets/routing/#1-html_handling) determines the redirects and rewrites of requests for HTML content.
47+
* [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.
48+
* `jwt` field provides a token authorizing assets to be attached to a Worker.
49+
50+
* `keep_assets` <Type text="boolean" /> <MetaInfo text="optional" />
51+
52+
* Specifies whether assets should be retained from a previously uploaded Worker version; used in lieu of providing a completion token.
53+
4254
* `bindings` array\[object] optional
4355

4456
* [Bindings](#bindings) to expose in the Worker.
@@ -126,6 +138,10 @@ Workers can interact with resources on the Cloudflare Developer Platform using [
126138
"name": "<VARIABLE_NAME>",
127139
"dataset": "<DATASET>"
128140
},
141+
{
142+
"type": "assets",
143+
"name": "<VARIABLE_NAME>"
144+
},
129145
{
130146
"type": "browser_rendering",
131147
"name": "<VARIABLE_NAME>"

0 commit comments

Comments
 (0)