Skip to content

Commit

Permalink
add assets options to miniflare README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen committed Sep 26, 2024
1 parent 725a4f4 commit 0d70636
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/miniflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,17 @@ parameter in module format Workers.
have at most one consumer. If a `string[]` of queue names is specified,
default consumer options will be used.

#### Assets

- `directory?: string`
Path to serve Workers static asset files from.

- `binding?: string`
Binding name to inject as a `Fetcher` binding to allow access to static assets from within the Worker.

- `assetOptions?: { html_handling?: HTMLHandlingOptions, not_found_handling?: NotFoundHandlingOptions}`
Configuration for file-based asset routing - see [docs](https://developers.cloudflare.com/workers/static-assets/routing/#routing-configuration) for options

#### Analytics Engine, Sending Email, Vectorize and Workers for Platforms

_Not yet supported_
Expand Down

0 comments on commit 0d70636

Please sign in to comment.