Next.js Discord

Discord Forum

build size is too big

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
Earlier i was using CRA, its build was about 30mb.
Moved to next, now my .next folder is about 350mb. The cache folder alone is 330mb.

Earlier I was putting the CRA build on my ec2 and serving the index.html thorugh nginx. (I had flask backend).
Should I put my .next folder (and remove cache folder) and reverse proxy my requests to nextjs? And i think I need to use process manager too to keep running it? (I am still using the flask bakcend)

0 Replies