Skip to content

Commit

Permalink
Document smart placement with assets impact
Browse files Browse the repository at this point in the history
  • Loading branch information
WillTaylorDev committed Dec 16, 2024
1 parent 72684c6 commit 6fd340f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/content/docs/workers/static-assets/binding.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
pcx_content_type: concept
title: Configuration and binding
title: Configuration and Bindings
sidebar:
order: 7
head: []
Expand Down Expand Up @@ -133,3 +133,13 @@ export default {
## Routing configuration

For the various static asset routing configuration options, refer to [Routing](/workers/static-assets/routing/).

## Smart Placement

[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.

:::note

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.

:::

0 comments on commit 6fd340f

Please sign in to comment.