Skip to content

Commit d225124

Browse files
Update src/content/docs/workers/static-assets/binding.mdx
Co-authored-by: Daniel Walsh <[email protected]>
1 parent 4edd50f commit d225124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ In the example above, assets would be available through `env.ASSETS`.
113113

114114
**Example**
115115

116-
Your dynamic code can make new, or forward incoming requests to your project's static assets using the assets binding. For example, `env.ASSETS.fetch(request)`, `env.ASSETS.fetch('https://assets.local/my-file')` or `env.ASSETS.fetch(new URL('https://assets.local/my-file'))`.
116+
Your dynamic code can make new, or forward incoming requests to your project's static assets using the assets binding. For example, `env.ASSETS.fetch(request)`, `env.ASSETS.fetch(new URL('https://assets.local/my-file'))` or `env.ASSETS.fetch('https://assets.local/my-file')`.
117117

118118
Take the following example that configures a Worker script to return a response under all requests headed for `/api/`. Otherwise, the Worker script will pass the incoming request through to the asset binding. In this case, because a Worker script is only invoked when the requested route has not matched any static assets, this will always evaluate [`not_found_handling`](/workers/static-assets/routing/#routing-configuration) behavior.
119119

0 commit comments

Comments
 (0)