Compare commits

...

1 commit

Author SHA1 Message Date
Ryan Dahl
04cddc187b [miniflare] Serve local assets with workerd's native assets service
Miniflare no longer runs its own copies of the router, asset and
assets-KV Workers, nor the RPC proxy in front of them, and no longer
walks the assets directory to build a manifest at startup. A Worker's
assets are one workerd `assets` service, which routes each request to
the User Worker or to a file and sends the User Worker every other
event (RPC, scheduled, tail). `env.ASSETS` binds its `AssetWorker`
entrypoint.

`_headers`, `_redirects` and `.assetsignore` are passed to the service
as text, and `run_worker_first` and `.assetsignore` are still validated
when Miniflare starts. The asset count and size limits are no longer
checked locally. The read-only test now covers Workers Sites only:
assets have no disk service to write to.

The config types are regenerated from the pinned workerd schema plus
the new `AssetsService`, and will be regenerated again against the
workerd release that includes it.
2026-11-15 22:09:44 -08:00
16 changed files with 202 additions and 667 deletions