Skip to content

Commit

Permalink
[Workers Assets] Update Static Assets page to reflect new `wrangler d…
Browse files Browse the repository at this point in the history
…ev --remote` support (#18469)
  • Loading branch information
CarmenPopoviciu authored Dec 19, 2024
1 parent 487275e commit b501f47
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
28 changes: 13 additions & 15 deletions src/content/docs/workers/static-assets/compatibility-matrix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ We plan to bridge the gaps between Workers and Pages and provide ways to migrate
| [Preview URLs](/workers/configuration/previews) |||
| [Testing tools](/workers/testing) |||
| [Local Development](/workers/testing/local-development/) |||
| [Remote Development (`--remote`)](/workers/wrangler/commands/) |[^1] ||
| [Remote Development (`--remote`)](/workers/wrangler/commands/) | ||
| [Quick Editor in Dashboard](https://blog.cloudflare.com/improved-quick-edit) |||
| **Static Assets** | | |
| [Early Hints](/pages/configuration/early-hints/) |||
| [Custom HTTP headers for static assets](/pages/configuration/headers/) | 🟡 [^2] ||
| [Middleware](/pages/functions/middleware/) | 🟡 [^3] ||
| [Redirects](/pages/configuration/redirects/) | 🟡 [^4] ||
| [Custom HTTP headers for static assets](/pages/configuration/headers/) | 🟡 [^1] ||
| [Middleware](/pages/functions/middleware/) | 🟡 [^2] ||
| [Redirects](/pages/configuration/redirects/) | 🟡 [^3] ||
| [Smart Placement](/workers/configuration/smart-placement/) |||
| **Observability** | | |
| [Workers Logs](/workers/observability/) |||
Expand All @@ -50,7 +50,7 @@ We plan to bridge the gaps between Workers and Pages and provide ways to migrate
| [Real-time logs](/workers/observability/logs/real-time-logs/) |||
| **Runtime APIs & Compute Models** | | |
| [Node.js Compatibility Mode](/workers/runtime-apis/nodejs/) |||
| [Durable Objects](/durable-objects/api/) || 🟡 [^5] |
| [Durable Objects](/durable-objects/api/) || 🟡 [^4] |
| [Cron Triggers](/workers/configuration/cron-triggers/) |||
| **Bindings** | | |
| [AI](/workers-ai/get-started/workers-wrangler/#2-connect-your-worker-to-workers-ai) |||
Expand Down Expand Up @@ -78,19 +78,17 @@ We plan to bridge the gaps between Workers and Pages and provide ways to migrate
| [Branch Deploy Controls](/pages/configuration/branch-build-controls/) |||
| [Custom Branch Aliases](/pages/how-to/custom-branch-aliases/) |||
| **Pages Functions** | | |
| [File-based Routing](/pages/functions/routing/) |[^6] ||
| [Pages Plugins](/pages/functions/plugins/) |[^7] ||
| [File-based Routing](/pages/functions/routing/) |[^5] ||
| [Pages Plugins](/pages/functions/plugins/) |[^6] ||

[^1]: Does not currently support Workers with static assets. For more details on which bindings are supported in remote development, [refer to the docs](/workers/testing/local-development/#supported-resource-bindings-in-different-environments).
[^1]: Similar to <sup>3</sup>, to customize the HTTP headers that are returned by static assets, you can use [Service bindings](/workers/runtime-apis/bindings/service-bindings/) to connect a Worker in front of the Worker with assets.

[^2]: Similar to <sup>3</sup>, to customize the HTTP headers that are returned by static assets, you can use [Service bindings](/workers/runtime-apis/bindings/service-bindings/) to connect a Worker in front of the Worker with assets.
[^2]: If you need to run a Worker before serving static assets, you can create a separate Worker that acts as middleware, and then use [Service bindings](/workers/runtime-apis/bindings/service-bindings/) to forward the request to the Worker with assets. We plan to explore additional configuration to support more complex routing in the future.

[^3]: If you need to run a Worker before serving static assets, you can create a separate Worker that acts as middleware, and then use [Service bindings](/workers/runtime-apis/bindings/service-bindings/) to forward the request to the Worker with assets. We plan to explore additional configuration to support more complex routing in the future.
[^3]: You can handle redirects by adding code to your Worker (a [community package](https://npmjs.com/package/redirects-in-workers) is available for `_redirects` support), or you can use [Bulk Redirects](/rules/url-forwarding/bulk-redirects/).

[^4]: You can handle redirects by adding code to your Worker (a [community package](https://npmjs.com/package/redirects-in-workers) is available for `_redirects` support), or you can use [Bulk Redirects](/rules/url-forwarding/bulk-redirects/).
[^4]: To [use Durable Objects with your Cloudflare Pages project](/pages/functions/bindings/#durable-objects), you must create a separate Worker with a Durable Object and then declare a binding to it in both your Production and Preview environments. Using Durable Objects with Workers is simpler and recommended.

[^5]: To [use Durable Objects with your Cloudflare Pages project](/pages/functions/bindings/#durable-objects), you must create a separate Worker with a Durable Object and then declare a binding to it in both your Production and Preview environments. Using Durable Objects with Workers is simpler and recommended.
[^5]: Workers [supports popular frameworks](/workers/frameworks/), many of which implement file-based routing.

[^6]: Workers [supports popular frameworks](/workers/frameworks/), many of which implement file-based routing.

[^7]: Everything that is possible with Pages Functions can also be achieved by adding code to your Worker or by using framework-specific plugins for relevant third party tools.
[^6]: Everything that is possible with Pages Functions can also be achieved by adding code to your Worker or by using framework-specific plugins for relevant third party tools.
2 changes: 1 addition & 1 deletion src/content/docs/workers/testing/local-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ npx wrangler dev
| Product | Local Dev Supported | Remote Dev Supported |
| ----------------------------------- | ------------------- | -------------------- |
| AI |[^1] ||
| Assets || |
| Assets || |
| Analytics Engine |||
| Browser Rendering |||
| D1 |||
Expand Down

0 comments on commit b501f47

Please sign in to comment.