r/Amplify • u/FitCoach5288 • Sep 30 '26
Build error:exceed Max allowed
Hi everyone..
i'm building mid-large scale web app +70k line of code,with nextjs and mongodb and many lib.and heave backen dashboard admin panel,notification ,etc..
i was building for testing on aws amplify normally but today i pushed a big change to my GitHub test branch,then checked my test url on aws amplify and the build failed
error below:
2026-09-30T09:32:13.132Z [ERROR]: !!! CustomerError: The size of the build output (768231826) exceeds the max allowed size of230686720 bytes. Please reduce the size ofyour build output and try again.
is aws amplify has limit for building web app or i have a bug when when pushed to GitHub? how large scale web app deploy to aws amplify,how to fix this error?
2
u/bobbor Sep 30 '26
Hey. (AmplifyJS maintainer here)
so the error statement tells you the problem you are facing.
An Amplify-Hosting app cannot be larger than ~220MB
source: https://docs.aws.amazon.com/amplify/latest/userguide/troubleshooting-SSR.html#build-output-too-large
it looks like your application is more than 700MB.
Best thing is to follow the guide on the docs page to investigate as to why your build output for your app is so big.
EDIT: keep me updated, I'd be curious to know where the problem is.