gzimbron / amplify-adapter

MIT License
22 stars 2 forks source link

SvelteKit: The size of the build output (716034182) exceeds the max allowed size of 230686720 bytes #2

Closed johnpc closed 10 months ago

johnpc commented 10 months ago

When I attempt to use this sveltekit adapter amplify-adapter, I get the following deployment error in AWS Amplify:

2023-12-28T18:57:39.793Z [ERROR]: !!! CustomerError: The size of the build output (716034182) exceeds the max allowed size of 230686720 bytes. Please reduce the size of your build output (/codebuild/output/src1442862685/src/test-app/build/compute/default) and try again.

This appears to be because it includes the full node_modules contents in build/compute/default which too large to deploy.

Great project by the way!

gzimbron commented 10 months ago

Hi, thanks for reporting this. I got this error too when I try to deploy a big site.

gzimbron commented 10 months ago

Hi @johnpc

I'm happy to announce that this issue has been resolved in version 0.1.0. To fix this issue, you need to add the following two commands to your amplify.yml file:

- cd build/compute/default/
- npm i --production

App build specification

johnpc commented 10 months ago

Thanks!! I’ll be using it this weekend!

rizwaniqbalrao commented 8 months ago

still i'm having this issue. these commands given above doesn't works. :(

mmurraymarsdd commented 4 months ago

Experiencing this as well. Looks like its mostly the node_modules directory. Could there be another way to bundle/package the files?