The built tree ships every people-group list, so ?list= draws pins
generate-tree's asset allow-list staged people-groups-slim and -points but not people-groups/lists/*.json,
so on the built tree every non-default list (frontier-500k, frontier, unreached, unengaged) 404'd and the map
drew 0 pins (go-int / rega at a71007f1). The lists folder now ships whole, like tables/: the fetch name is the
list id. Verified on a regenerated tree: all four files staged; check:list-prop-unit PASS.
This commit is contained in:
parent
f9ce2aeb4e
commit
57b0200bb6
1 changed files with 9 additions and 0 deletions
|
|
@ -1663,6 +1663,15 @@ function main() {
|
|||
staged++
|
||||
}
|
||||
}
|
||||
// people-groups/lists/*.json — the ?list= / profile-config `list` prop fetches the chosen list by name
|
||||
// (frontier-500k, frontier, unreached, unengaged), so the whole folder ships. Missing, every non-default
|
||||
// list 404'd on the built tree and drew 0 pins (go-int / rega at a71007f1).
|
||||
const listsSrc = join(pubAssets, 'people-groups', 'lists')
|
||||
if (existsSync(listsSrc)) {
|
||||
const listsDest = join(treeAssets, 'people-groups', 'lists')
|
||||
mkdirSync(listsDest, { recursive: true })
|
||||
for (const f of readdirSync(listsSrc)) { if (!f.endsWith('.json')) continue; cpSync(join(listsSrc, f), join(listsDest, f)); staged++ }
|
||||
}
|
||||
// previews/ + posters/ — the poster walls fetch these PER CARD, lazily, by id
|
||||
// (`${assetsBase}/previews/<id>.webp`, `${assetsBase}/posters/<id>.webp`), so the
|
||||
// name is dynamic and the whole folder ships. They are the bulk of the tree
|
||||
|
|
|
|||
Loading…
Reference in a new issue