Keep single-tag rollback on the legacy worker path

This commit is contained in:
Jonathan Sykes
2026-10-07 23:58:29 +08:00
parent 5b25ccaa86
commit bb446c717f
2 changed files with 6 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ export function stampIndex(source, files, { hashing = true, buildTag = '__BUILD_
}
export function createAssetManifest(publicDir = './public', { hashing = true, buildTag: override, assetSync = true } = {}) {
// Single-tag URLs cannot be verified against per-file URL hashes.
assetSync = hashing && assetSync;
const bytes = new Map();
const legacy = createHash('sha256');
function walk(dir, prefix = '') {