LinusU / scandium

🚀 Easily deploy any Node.js web server to AWS Lambda
71 stars 8 forks source link

max buffer exceeded #49

Closed ghost closed 5 years ago

ghost commented 5 years ago
screen shot 2018-11-29 at 2 53 30 am
LinusU commented 5 years ago

We should probably make this error more clear, but it seems like you are running into this (https://github.com/LinusU/scandium/blob/c218ea77efd9b193214c6a674b9eee2606181aec/lib/builder.js#L70) limitation.

Unfortunately, Lambda has a maximum zip size of 50MB, or 100MB if you upload via S3.

Do you know why the built app is so large? Some things you can try are:

LinusU commented 5 years ago

Actually, a problem with the code capped at 75MB instead of 100MB, this should be fixed in 1.0.0-alpha.40, see #51

LinusU commented 5 years ago

ping @sc4224 ☺️ any updates? did you try the tricks I mentioned, or the newer version?

LinusU commented 5 years ago

closing since it should be fixed in alpha.40...