Build Fails with Large Number of Markdown Files (100k+) in Astro Project #12888
Labels
feat: content collections
Related to the Content Collections feature (scope)
needs repro
Issue needs a reproduction
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I'm struggling with an issue when running npm run build locally. The process fails, and I'm at my wit's end trying to fix it. My project has more than 100,000 .md files in the content folder, and I use getCollection("posts") in several places. I've already tried increasing memory limits with --max-old-space-size=12288 and many other tweaks, but nothing seems to work.
The website is intended to be fully static on the server, and I need the entire dist folder to be generated.
Is there any solution for this? I’m really desperate at this point.
Thank you so much in advance!
Console:
What's the expected result?
All dist archives
Link to Minimal Reproducible Example
https://pantic14.com/
Participation
The text was updated successfully, but these errors were encountered: