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
Copy file name to clipboardExpand all lines: src/content/docs/workers/static-assets/compatibility-matrix.mdx
+31-38Lines changed: 31 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,46 +11,53 @@ import {
11
11
Badge,
12
12
Description,
13
13
FileTree,
14
+
Footnotes,
14
15
InlineBadge,
15
16
Render,
16
17
TabItem,
17
18
Tabs,
18
19
} from"~/components";
19
20
20
-
You can deploy full-stack applications, including front-end static assets and back-end APIs and server-side rendered pages (SSR), to both Cloudflare [Workers](/workers/static-assets/) and [Pages](/pages/). The compatibility matrix below shows which features are available for each, to help you choose whether to build with Workers or Pages. Unless otherwise stated below, what works in Pages works in Workers, and what works in Workers works in Pages. Think something is missing from this list? [Open a pull request](https://github.com/cloudflare/cloudflare-docs/edit/production/src/content/docs/workers/static-assets/compatibility-matrix.mdx) or [create a GitHub issue](https://github.com/cloudflare/cloudflare-docs/issues/new).
21
+
You can deploy full-stack applications, including front-end static assets and back-end APIs, as well as server-side rendered pages (SSR), to both Cloudflare [Workers](/workers/static-assets/) and [Pages](/pages/). The compatibility matrix below shows which features are available for each, to help you choose whether to build with Workers or Pages. Unless otherwise stated below, what works in Pages works in Workers, and what works in Workers works in Pages. Think something is missing from this list? [Open a pull request](https://github.com/cloudflare/cloudflare-docs/edit/production/src/content/docs/workers/static-assets/compatibility-matrix.mdx) or [create a GitHub issue](https://github.com/cloudflare/cloudflare-docs/issues/new).
21
22
22
23
We plan to bridge the gaps between Workers and Pages and provide ways to migrate your Pages projects to Workers.
<sup>1</sup> 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).
86
+
[^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).
80
87
81
-
<sup>2</sup> Similar to <sup>1</sup>, to customize the HTTP headers that
82
-
are returned by static assets, you can use [Service
83
-
bindings](/workers/runtime-apis/bindings/service-bindings/) to connect a Worker
84
-
in front of the Worker with assets.
88
+
[^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.
85
89
86
-
<sup>3</sup> If you need to run a Worker before serving static assets,
87
-
you can create a separate Worker that acts as middleware, and then use [Service
88
-
bindings](/workers/runtime-apis/bindings/service-bindings/) to forward the request
89
-
to the Worker with assets. We plan to explore additional configuration
90
-
to support more complex routing in the future.
90
+
[^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.
91
91
92
-
<sup>4</sup> You can handle redirects by adding code to your Worker (a
93
-
[community package](https://npmjs.com/package/redirects-in-workers) is available
[^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/).
96
93
97
-
<sup>5</sup> You cannot yet enable [Smart
98
-
Placement](/workers/configuration/smart-placement/) for Workers with static assets.
99
-
This is a temporary limitation we are working to remove.
94
+
[^5]: You cannot yet enable [Smart Placement](/workers/configuration/smart-placement/) for Workers with static assets. This is a temporary limitation we are working to remove.
100
95
101
-
<sup>6</sup> You cannot yet add a [Tail
102
-
Worker](/workers/observability/logs/tail-workers/) to a project with assets.
103
-
This is a temporary limitation we are working to remove.
96
+
[^6]: You cannot yet add a [Tail Worker](/workers/observability/logs/tail-workers/) to a project with assets. This is a temporary limitation we are working to remove.
104
97
105
-
<sup>7</sup> 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.
98
+
[^7]: 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.
106
99
107
-
<sup>8</sup> Workers [supports popular frameworks](/workers/frameworks/), many of which implement file-based routing.
100
+
[^8]: Workers [supports popular frameworks](/workers/frameworks/), many of which implement file-based routing.
108
101
109
-
<sup>9</sup> 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.
102
+
[^9]: 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.
0 commit comments