Angaben zum Datum
Datum aus der Quelle.
Aufgenommen am .
miniflare 5.20261006.0-alpha: assets.base_path und Flagship-Flags
miniflare 5.20261006.0-alpha unterstützt assets.base_path für Workers Assets und ermöglicht in der Local Explorer die Verwaltung lokaler Flagship-Flags.
Minor Changes
#15998
b75421fThanks @dario-piotrowicz! - Addassets.base_pathsupport to Workers AssetsServe an asset directory from a public URL prefix without changing its on-disk layout:
{ "assets": { "directory": "./public", "base_path": "/docs" } }Wrangler, preview, Miniflare, and generated build configuration preserve the explicitly selected value, while the Asset Worker normalizes it and strips the prefix only for asset lookup. Requests passed to a user Worker, request-facing headers, and redirects retain the public path. Relative pathname inputs are interpreted as root-relative prefixes, URL-shaped values are rejected, and omitting the option preserves existing root-path behavior.
Authored
_headersand_redirectsrules continue to match full public paths. In particular, both the source and destination of an authored200asset rewrite must include the configured public prefix; Asset Worker-generated redirects are prefixed automatically.#15330
f8cdcb9Thanks @akshitsinha! - Manage local Flagship flags in Local Explorer …