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
@@ -113,8 +118,8 @@ Your dynamic code can make new, or forward incoming, requests to your project's
113
118
114
119
Take the following example that configures a Worker script to return a response under all requests headed for `/api/`. Otherwise, the Worker script will pass the incoming request through to the asset binding. In this case, because a Worker script is only invoked when the requested route has not matched any static assets, this will always evaluate [`not_found_handling`](/workers/static-assets/routing/#routing-configuration) behavior.
Copy file name to clipboardExpand all lines: src/content/docs/workers/static-assets/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,17 +67,17 @@ Requests to a project with static assets can either return static assets or invo
67
67
68
68
**Requests to static assets are free and unlimited**. Requests to the Worker script (e.g. in the case of SSR content) are billed according to Workers pricing. Refer to [pricing](/workers/platform/pricing/#example-2) for an example.
69
69
70
-
There's no additional cost for storing Assets.
70
+
There's no additional cost for storing Assets.
71
71
72
72
### Troubleshooting
73
73
74
-
-`assets.bucket is a required field` —if you see this error, you need to update Wrangler to at least `3.78.10` or later. `bucket` is not a required field.
74
+
-`assets.bucket is a required field` —if you see this error, you need to update Wrangler to at least `3.78.10` or later. `bucket` is not a required field.
75
75
76
76
### Limitations
77
77
78
78
The following limitations apply for Workers with static assets:
79
79
80
-
- There is a 20,000 file count limit per [Worker version](/workers/configuration/versions-and-deployments/), and a 25 MiB individual file size limit. This matches the [limits in Cloudflare Pages](/pages/platform/limits/) today.
80
+
- There is a 20,000 file count limit per [Worker version](/workers/configuration/versions-and-deployments/), and a 25 MiB individual file size limit. This matches the [limits in Cloudflare Pages](/pages/platform/limits/) today.
81
81
- You cannot upload static assets to [Workers for Platforms](/cloudflare-for-platforms/workers-for-platforms/)[user workers](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/). This is a temporary limitation, we are working to remove it.
82
82
- In local development, you cannot make [Service Binding RPC calls](/workers/runtime-apis/bindings/service-bindings/rpc/) to a Worker with static assets. This is a temporary limitation, we are working to remove it.
83
83
- Workers with assets cannot run on a [route or domain](/workers/configuration/routing/) with a path component. For example, `example.com/*` is an acceptable route, but `example.com/foo/*` is not. Wrangler and the Cloudflare dashboard will throw an error when you try and add a route with a path component.
0 commit comments