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
fix: cloudflare_workers_script.assets.config.run_worker_first accepts list input
- This property can either be a boolean or list of strings, the API accepts both - Update resource to accept list of strings in addition to boolean values
Copy file name to clipboardExpand all lines: docs/resources/workers_script.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-
159
159
-`not_found_handling` (String) Determines the response when a request does not match a static asset, and there is no Worker script.
160
160
Available values: "none", "404-page", "single-page-application".
161
161
-`redirects` (String) The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving).
162
-
-`run_worker_first` (Boolean) When true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script.
162
+
-`run_worker_first` (Boolean, List of String) When a boolean true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script. When a list of strings, contains path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
163
163
-`serve_directly` (Boolean, Deprecated) When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.
0 commit comments