fix(ci): avoid serializing downloaded sitemap endpoints
Some checks failed
Deploy to Cloudflare Workers with Wrangler / Deploy (push) Has been cancelled
Run Node 24 Checks / build (24.x) (push) Has been cancelled

Keep the Pagefind bootstrap path from rewriting the remote sitemap
payload locally when the static JSON file is absent. GitHub-hosted runs
only need the fetched data in memory, and stringifying the 385 MB payload
was exhausting Node during netlify-build.
This commit is contained in:
ThatGuySam 2026-03-15 19:33:05 -05:00
parent 3dcf7da638
commit c5ec942de0

View file

@ -22,7 +22,6 @@ async function loadSitemapEndpoints () {
apiUrl.pathname = sitemapEndpointsPath.replace(/^\.?\/?static\//, '/')
const response = await axios.get( apiUrl.toString() )
await fs.outputJson( sitemapEndpointsPath, response.data, { spaces: 2 } )
return response.data
}