You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[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.
-[html_handling](/workers/static-assets/routing/#1-html_handling) determines the redirects and rewrites of requests for HTML content.
49
+
-[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.
50
+
-`jwt` field provides a token authorizing assets to be attached to a Worker.
51
51
52
-
* Specifies whether assets should be retained from a previously uploaded Worker version; used in lieu of providing a completion token.
-[Smart placement](/workers/configuration/smart-placement/) object for the Worker.
63
+
-`mode` field only supports `smart` for automatic placement.
64
64
65
-
*[Compatibility Date](/workers/configuration/compatibility-dates/#setting-compatibility-date) indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. Highly recommended to set a `compatibility_date`, otherwise if on upload via the API, it defaults to the oldest compatibility date before any flags took effect (2021-11-02).
-[Compatibility Date](/workers/configuration/compatibility-dates/#setting-compatibility-date) indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. Highly recommended to set a `compatibility_date`, otherwise if on upload via the API, it defaults to the oldest compatibility date before any flags took effect (2021-11-02).
68
68
69
-
*[Compatibility Flags](/workers/configuration/compatibility-flags/#setting-compatibility-flags) that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.
69
+
-`compatibility_flags` array\[string] optional
70
70
71
+
-[Compatibility Flags](/workers/configuration/compatibility-flags/#setting-compatibility-flags) that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.
* Annotations object specific to the Worker version.
115
-
*`workers/message` specifies a custom message for the version.
116
-
*`workers/tag` specifies a custom identifier for the version.
117
-
118
-
109
+
- Annotations object specific to the Worker version.
110
+
-`workers/message` specifies a custom message for the version.
111
+
-`workers/tag` specifies a custom identifier for the version.
119
112
120
113
## Bindings
121
114
122
115
Workers can interact with resources on the Cloudflare Developer Platform using [bindings](/workers/runtime-apis/bindings/). Refer to the JSON example below that shows how to add bindings in the `metadata` part.
0 commit comments