Skip to content

Commit 6ba82fa

Browse files
Tell the reader to remove unwanted binding property in "Pages to Workers" migration docs
This was brought up in the Wrangler Discord office hours
1 parent 164a6a1 commit 6ba82fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/docs/workers/static-assets/migration-guides/migrate-from-pages.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ Now, with **Cloudflare Workers**:
7979

8080
</WranglerConfig>
8181

82+
:::note
83+
84+
If your Worker will only contain assets and no Worker script, then you should remove the `"binding": "ASSETS"` field from your Pages configuration file, since this is only valid if you have a Worker script indicated by a `"main"` property. See the [Assets binding](#assets-binding) section below.
85+
86+
:::
87+
8288
#### Serving behavior
8389

8490
Pages would automatically attempt to determine the type of project you deployed. It would look for `404.html` and `index.html` files as signals for whether the project was likely a [Single Page Application (SPA)](/pages/configuration/serving-pages/#single-page-application-spa-rendering) or if it should [serve custom 404 pages](/pages/configuration/serving-pages/#not-found-behavior).

0 commit comments

Comments
 (0)