name: update-site
description: Use when the user wants to bump the frontend to point at newly uploaded Source Cooperative data, or wants to run/preview/build the site locally. Triggers: "push new data to the site", "bump site to latest data version", "update constants.js", "deploy the site", "preview the site with new data", "rebuild site after data refresh".
Update + verify the site
Vue 3 + Vite frontend lives in site/. After a data pull +
publish, the site's PMTiles URLs need a manual bump to the new Source
Cooperative version folder.
Prerequisites
- New data published to Source Cooperative via skills/conflate-snapshots.
- Node + npm available (see
site/package.json for engine requirements).
Steps
-
Sync taxonomy — run the sync-taxonomy skill first. It regenerates site/src/taxonomy.generated.js and site/public/taxonomy.html from the conflation CSVs and checks constants.js for missing display labels. Catch drift before touching data URLs.
-
Update PMTiles URLs in site/src/constants.js — both point at the Source Coop version folder (versions.source_coop in config.yaml):
OSM_PMTILES_URL → https://data.source.coop/henryspatialanalysis/openpois/<YYYY-MM-DD-vN>/osm-pmtiles/osm.pmtiles
CONFLATED_PMTILES_URL → https://data.source.coop/henryspatialanalysis/openpois/<YYYY-MM-DD-vN>/conflated-pmtiles/conflated.pmtiles
OVERTURE_PMTILES_URL → bump on monthly Overture release
-
Local preview:
cd site && npm run dev
Verify:
- Map loads POIs at zoom 14+ without CORS/404 errors on
data.source.coop
- Source filter dropdown (OSM / Overture / Conflated) toggles data
- Taxonomy legend renders from
taxonomy.html
- POI popups show non-empty name/category/confidence
- Post-territory-expansion (≥ 2026-05-21): pan to each of GU, VI, MP, AS — Guam (
+144°E) and American Samoa (-170°W) are the longitudes most likely to expose tile-wrap or PMTiles edge bugs that haven't been exercised on real data. Confirm points render at all 4. Search-bar sanity check: "Hagåtña", "Charlotte Amalie", "Saipan", "Pago Pago" should resolve via the Stadia geocoder (useGeocoder.js widens boundary.country to include PR,VI,GU,MP,AS).
-
Production build:
npm run build
Inspect dist/ output; flag large chunk-size increases if dependencies changed.
Post-territory-expansion: tippecanoe (run upstream during conflate-snapshots) now widens its tile pyramid to cover both hemispheres now that territory POIs span ~+144°E to ~-170°W. The PMTiles archive should still be small (z14, point data only), but a >2× jump in osm.pmtiles / conflated.pmtiles size vs the prior version suggests an unwanted full-globe tile pyramid — investigate before deploying.
-
Deploy — per host's deployment mechanism (not scripted in-repo).
-
Post-deploy check — load the deployed site, open browser console, confirm no CORS or 404s on the new Source Coop URLs.
Commit convention
Two separate commits, matching the recent history:
- "Push to new data version" —
config.yaml and publish-side changes
- "Update to latest data version" —
site/src/constants.js
Key files