Skip to content

Commit 6fd340f

Browse files
committed
Document smart placement with assets impact
1 parent 72684c6 commit 6fd340f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/content/docs/workers/static-assets/binding.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
pcx_content_type: concept
3-
title: Configuration and binding
3+
title: Configuration and Bindings
44
sidebar:
55
order: 7
66
head: []
@@ -133,3 +133,13 @@ export default {
133133
## Routing configuration
134134

135135
For the various static asset routing configuration options, refer to [Routing](/workers/static-assets/routing/).
136+
137+
## Smart Placement
138+
139+
[Smart Placement](/workers/configuration/smart-placement/) can be used to place a Worker's code close to your back-end infrastructure. Smart Placement will only have an effect if you specified a `main`, pointing to your Worker code.
140+
141+
:::note
142+
143+
Turning on Smart Placement in a Worker that is using static assets and [`serve_directly=false`](/workers/static-assets/routing/#invoking-worker-script-ahead-of-assets) means your entire Worker could be moved to run closer to your data source. All requests will go to that Worker before serving assets. This could result in an increase of round trip times when fetching assets through an asset binding.
144+
145+
:::

0 commit comments

Comments
 (0)