From c5ec942de048afcefa5ac6598bdd41c8f9f2cd6b Mon Sep 17 00:00:00 2001 From: ThatGuySam Date: Sun, 15 Mar 2026 19:33:05 -0500 Subject: [PATCH] fix(ci): avoid serializing downloaded sitemap endpoints 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. --- scripts/build-pagefind-index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/build-pagefind-index.js b/scripts/build-pagefind-index.js index b61a25f..a86519c 100644 --- a/scripts/build-pagefind-index.js +++ b/scripts/build-pagefind-index.js @@ -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 }