#Production - size of .next/server folder

10 messages · Page 1 of 1 (latest)

half sail
#

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

marble cobaltBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sly shard
half sail
#

i will see diffrences after build loccaly ?

half sail
#

hmmm, after standalone version the size increased

sly shard
#

without standalone

#

can u try looking for what files are responsible for such a high out size?

half sail
#

without standalone:

  • cache 661 mb
  • server 235 mb
  • ....others

full .next folder: 935 mb