Next.js Discord

Discord Forum

HIgh memory usage during compilation with edge runtime

Unanswered
Georgi Vatsov posted this in #help-forum
Open in Discord
There's a huge memory overload whenever I (try to) build any project with more than 30 pages. I created a project (https://github.com/gvatsov/high-ram-example) to reproduce it and also created a GitHub issue (https://github.com/vercel/next.js/issues/57223), but there was no response for more than 2 weeks now. The project uses Pages router and experimental-edge runtime, but later on I was able to reproduce it on App router project as well. I would not create another project to reproduce it, because of the lack of any attention to the first one I did.
What could I do so my compilation does not skyrocket the memory usage to the roof?
Did I not describe the issue ok and that's why it did not get any attention at all?

0 Replies