Skip to content

Commit 17fe459

Browse files
korinnehyperlint-ai[bot]WalshyDevOxyjun
authored
Adds more details to overview, basic workflow, and How it works section (#19508)
* Adds more details to overview, basic workflow, and How it works section * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: Daniel Walsh <[email protected]> * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: Daniel Walsh <[email protected]> * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: Daniel Walsh <[email protected]> * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: Daniel Walsh <[email protected]> * Update src/content/docs/workers/static-assets/index.mdx Co-authored-by: Daniel Walsh <[email protected]> * Updates overview, adds try it out section * Fixes typos, adds some bolding * adds line highlighting for code samples * Update src/content/docs/workers/frameworks/index.mdx * Update src/content/docs/workers/frameworks/index.mdx * Update src/content/docs/workers/static-assets/billing-and-limitations.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/routing.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx * Update src/content/docs/workers/static-assets/index.mdx --------- Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> Co-authored-by: Daniel Walsh <[email protected]> Co-authored-by: Jun Lee <[email protected]>
1 parent 4788587 commit 17fe459

File tree

5 files changed

+345
-38
lines changed

5 files changed

+345
-38
lines changed

src/content/docs/workers/frameworks/index.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ The following frameworks have experimental support for Cloudflare Workers and th
3838

3939
:::note
4040

41-
Static Assets for Workers is currently in open beta. If you're looking for a framework not on this list, it may be supported in [Cloudflare Pages](/pages/). Visit [Pages Frameworks guides](/pages/framework-guides/) for a full list.
41+
**Static Assets for Workers is currently in open beta.**
4242

43-
:::
43+
If you are looking for a framework not on this list:
44+
45+
- It may be supported in [Cloudflare Pages](/pages/). Refer to [Pages Frameworks guides](/pages/framework-guides/) for a full list.
46+
- Tell us which framework you would like to see supported on Workers in our [Cloudflare's Developer Discord](https://discord.gg/dqgZUwcD).
47+
:::
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
pcx_content_type: concept
3+
title: Billing and Limitations
4+
sidebar:
5+
order: 12
6+
head: []
7+
description: Billing, troubleshooting, and limitations for Static assets on Workers
8+
---
9+
10+
## Billing
11+
12+
Requests to a project with static assets can either return static assets or invoke the Worker script, depending on if the request [matches a static asset or not](/workers/static-assets/routing/).
13+
14+
Requests to static assets are free and unlimited. Requests to the Worker script (for example, in the case of SSR content) are billed according to Workers pricing. Refer to [pricing](/workers/platform/pricing/#example-2) for an example.
15+
16+
There is no additional cost for storing Assets.
17+
18+
## Limitations
19+
20+
The following limitations apply for Workers with static assets:
21+
22+
- 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.
23+
- 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.
24+
- 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.
25+
26+
## Troubleshooting
27+
28+
- `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.

src/content/docs/workers/static-assets/binding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pcx_content_type: concept
33
title: Configuration and Bindings
44
sidebar:
5-
order: 7
5+
order: 8
66
head: []
77
description: Details on how to configure Workers static assets and its binding.
88
---

0 commit comments

Comments
 (0)