Skip to content

Commit 43ec2a4

Browse files
committed
docs: update instructions for assets-only workers
1 parent 5261b20 commit 43ec2a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default config;
237237
/// file: wrangler.toml
238238
---site.bucket = ".cloudflare/public"---
239239
+++assets.directory = ".cloudflare/public"
240-
assets.binding = "ASSETS"+++
240+
assets.binding = "ASSETS" # Add this binding only if you have Worker scripts+++
241241
```
242242
243243
### wrangler.jsonc
@@ -250,7 +250,7 @@ assets.binding = "ASSETS"+++
250250
},---
251251
+++ "assets": {
252252
"directory": ".cloudflare/public",
253-
"binding": "ASSETS"
253+
"binding": "ASSETS" // Add this binding only if you have Worker scripts
254254
}+++
255255
}
256256
```

0 commit comments

Comments
 (0)