Production - size of .next/server folder
Unanswered
Californian posted this in #help-forum
CalifornianOP
Hello, we have deploy problem of frontend app written in NextJs
Front is on aws aws amplify and on our type of deploy is set 200 ma max size of file.
Should i change type of deploy to handle more max size or optymalize .next folder to not have above 250 mb ? Because ./next/server has 230 mb after build so maybe our next config is not good for production build
Front is on aws aws amplify and on our type of deploy is set 200 ma max size of file.
Should i change type of deploy to handle more max size or optymalize .next folder to not have above 250 mb ? Because ./next/server has 230 mb after build so maybe our next config is not good for production build
9 Replies
you could try deploying the
standalone
versionCalifornianOP
i will see diffrences after build loccaly ?
CalifornianOP
hmmm, after standalone version the size increased
CalifornianOP
without standalone:
- cache 661 mb
- server 235 mb
- ....others
full .next folder: 935 mb
- cache 661 mb
- server 235 mb
- ....others
full .next folder: 935 mb
CalifornianOP
hmmm, any idea ?