Skip to content

prerender-v0.5.0 — @harperfast/prerender

Choose a tag to compare

@harper-joseph harper-joseph released this 08 Jul 20:32
b52d6fe

@harperfast/prerender v0.5.0

Sitemap refresh reliability + identifiable outbound traffic.

  • Fail loudly on a blocked sitemap fetch. fetchLatestSitemap now guards res.ok and 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-op created: 0 success. parseSitemap extracted to util/sitemap.js.
  • Route all Harper→origin sitemap traffic through the configured staging edge. Whenever staging.ip is set, the sitemap fetch (including the daily scheduled refresh) is pinned to it (Host/SNI preserved), so the security token authenticates. Empty staging.ip → direct fetch.
  • Identifiable User-Agents. Sitemap fetch uses a configurable sitemapUserAgent (default HarperSitemapCrawler/1.0); proxy device UAs now carry HarperProxy/1.0 (was HarperPrerender/1.0).

Consumers install the tarball asset from this release; bump @harperfast/prerender in kohls-pr to pick it up.