Next.js Discord

Discord Forum

Next build heap explodes

Unanswered
Mini Rex posted this in #help-forum
Open in Discord
Mini RexOP
When my app builds in Github Actions with vercel build it blows the heap. What can I do to avoid this? I can't deploy my app anymore because of this. Github has various potential culprits like using some icon libraries (I use react-icons and whatever shadcn/ui uses).
It would be nice to get some hints here because debugging github actions is the worst.

1 Reply

Mini RexOP
Okay it was a file with 2000+ lines of exports. That's a pretty big number for a 1995 supercomputer...