Skip to content

Commit e74ec5f

Browse files
authored
fix(docs): update instructions for assets-only workers
1 parent 5261b20 commit e74ec5f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Alternatively, you can [prerender](page-options#prerender) the routes in questio
211211
212212
## Migrating from Workers Sites
213213
214-
Cloudflare no longer recommends using [Workers Sites](https://developers.cloudflare.com/workers/configuration/sites/configuration/) and instead recommends using [Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/). To migrate, replace `@sveltejs/adapter-cloudflare-workers` with `@sveltejs/adapter-cloudflare` and remove all `site` configuration settings from your Wrangler configuration file, then add the `assets.directory` and `assets.binding` configuration settings:
214+
Cloudflare no longer recommends using [Workers Sites](https://developers.cloudflare.com/workers/configuration/sites/configuration/) and instead recommends using [Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/). To migrate, replace `@sveltejs/adapter-cloudflare-workers` with `@sveltejs/adapter-cloudflare` and remove all `site` configuration settings from your Wrangler configuration file, then add the `assets.directory` configuration setting:
215215
216216
### svelte.config.js
217217
@@ -236,8 +236,7 @@ export default config;
236236
```toml
237237
/// file: wrangler.toml
238238
---site.bucket = ".cloudflare/public"---
239-
+++assets.directory = ".cloudflare/public"
240-
assets.binding = "ASSETS"+++
239+
+++assets.directory = ".cloudflare/public"+++
241240
```
242241
243242
### wrangler.jsonc
@@ -249,8 +248,7 @@ assets.binding = "ASSETS"+++
249248
"bucket": ".cloudflare/public"
250249
},---
251250
+++ "assets": {
252-
"directory": ".cloudflare/public",
253-
"binding": "ASSETS"
251+
"directory": ".cloudflare/public"
254252
}+++
255253
}
256254
```

0 commit comments

Comments
 (0)