prerender-v0.5.0 — @harperfast/prerender
@harperfast/prerender v0.5.0
Sitemap refresh reliability + identifiable outbound traffic.
- Fail loudly on a blocked sitemap fetch.
fetchLatestSitemapnow guardsres.okand validates the parsed shape; a non-sitemap response (e.g. an Akamai 403 "Access Denied" HTML page) throws with the status + a body snippet instead of silently reporting a no-opcreated: 0success.parseSitemapextracted toutil/sitemap.js. - Route all Harper→origin sitemap traffic through the configured staging edge. Whenever
staging.ipis set, the sitemap fetch (including the daily scheduled refresh) is pinned to it (Host/SNI preserved), so the security token authenticates. Emptystaging.ip→ direct fetch. - Identifiable User-Agents. Sitemap fetch uses a configurable
sitemapUserAgent(defaultHarperSitemapCrawler/1.0); proxy device UAs now carryHarperProxy/1.0(wasHarperPrerender/1.0).
Consumers install the tarball asset from this release; bump @harperfast/prerender in kohls-pr to pick it up.