Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
41a5874
Adds more details to overview, basic workflow, and How it works section
korinne Jan 29, 2025
fbba83f
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
7b760ad
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
7dd6bbe
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
acf2961
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
122c2c2
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
d32e32d
Update src/content/docs/workers/static-assets/index.mdx
korinne Jan 29, 2025
c337adf
Updates overview, adds try it out section
korinne Jan 31, 2025
51eaaf6
Fixes typos, adds some bolding
korinne Jan 31, 2025
c2b7fca
adds line highlighting for code samples
korinne Feb 1, 2025
10c00c8
Update src/content/docs/workers/frameworks/index.mdx
Oxyjun Feb 5, 2025
d52902c
Update src/content/docs/workers/frameworks/index.mdx
Oxyjun Feb 5, 2025
a809133
Update src/content/docs/workers/static-assets/billing-and-limitations…
Oxyjun Feb 5, 2025
feeea0f
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
414f5f4
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
78a0bc7
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
c41babf
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
e8dc03e
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
4e79672
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
b730fd1
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
40f1967
Update src/content/docs/workers/static-assets/routing.mdx
Oxyjun Feb 5, 2025
e8d96d9
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
879227c
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
3aefe38
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
e693569
Update src/content/docs/workers/static-assets/index.mdx
Oxyjun Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/content/docs/workers/frameworks/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ The following frameworks have experimental support for Cloudflare Workers and th

:::note

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.
**Static Assets for Workers is currently in open beta.**

:::
If you are looking for a framework not on this list:

- It may be supported in [Cloudflare Pages](/pages/). Refer to [Pages Frameworks guides](/pages/framework-guides/) for a full list.
- Tell us which framework you would like to see supported on Workers in our [Cloudflare's Developer Discord](https://discord.gg/dqgZUwcD).
:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
pcx_content_type: concept
title: Billing and Limitations
sidebar:
order: 12
head: []
description: Billing, troubleshooting, and limitations for Static assets on Workers
---

## Billing

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/).

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.

There is no additional cost for storing Assets.

## Limitations

The following limitations apply for Workers with static assets:

- 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.
- 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.
- 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.

## Troubleshooting

- `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.
2 changes: 1 addition & 1 deletion src/content/docs/workers/static-assets/binding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: concept
title: Configuration and Bindings
sidebar:
order: 7
order: 8
head: []
description: Details on how to configure Workers static assets and its binding.
---
Expand Down
Loading