I have an static site with 452K pages. It is generating all pages properly, but at the end is throwing a Maximum call stack size exceeded error.
Here is how is ending:
17:34:20 ▶ src/pages/index.astro
17:34:20 └─ /index.html (+2ms)
17:34:20 ✓ Completed in 219.78s.
Maximum call stack size exceeded
Stack trace:
at getStatsFromBinding (node:internal/fs/utils:544:29)
at removeEmptyDirs (file:///home/angelcc/projects/XXXXX/monorepo/frontend/node_modules/astro/dist/core/fs/index.js:8:11)
at Array.map (<anonymous>)
at file:///home/angelcc/projects/XXXXX/monorepo/frontend/node_modules/astro/dist/core/fs/index.js:13:7
at removeEmptyDirs (file:///home/angelcc/projects/XXXXX/monorepo/frontend/node_modules/astro/dist/core/fs/index.js:11:11)
I had similar problem with the @astrojs/sitemap plugin, but now is disable.
Any idea how to resolve this problem?
Using "astro": "^4.15.1"