mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
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.
This commit is contained in:
parent
3dcf7da638
commit
c5ec942de0
1 changed files with 0 additions and 1 deletions
|
|
@ -22,7 +22,6 @@ async function loadSitemapEndpoints () {
|
||||||
apiUrl.pathname = sitemapEndpointsPath.replace(/^\.?\/?static\//, '/')
|
apiUrl.pathname = sitemapEndpointsPath.replace(/^\.?\/?static\//, '/')
|
||||||
|
|
||||||
const response = await axios.get( apiUrl.toString() )
|
const response = await axios.get( apiUrl.toString() )
|
||||||
await fs.outputJson( sitemapEndpointsPath, response.data, { spaces: 2 } )
|
|
||||||
|
|
||||||
return response.data
|
return response.data
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue