Decrease size of deployment package

Hello FA,
Which tool do you recommend to decrease the size of the deployment package when using Forest Admin in a serverless/AWS Lambda environment?
What do you suggest to skip the 250 MB (unzipped) Lambda limit ?

Thank you in advance


  • Project name: Elyps
  • Team name: Elyps
  • Environment name: dev-cli
  • Agent (forest package) name & version: …
  • Database type: MySQL (sequelize)
  • Recent changes made on your end if any: Upgrade from v6 to v7

Forestadmin “instand setup” (cloud) uses the lambda environment to deploy the customer agent. We are using the new agent nodejs. The agent forest-express-sequelize does not support the lambda environment.

However, If you want to user the agent nodejs, there are several points to note:

  1. Schema will be computed every time you start the lambda. The lambda will reply after this configuration, which can take a long time.
  2. Lambda does not support http requests. On our side, we have a gateway in front of our agents that forwards http requests to Lambda via a hand-crafted protocol.

If you have any questions, please don’t hesitate to contact us.

Hi Alban,
Thank you for your answer!

We are already using Forest Admin v6, when we upgrade to v7 we can’t deploy anymore to our remote stage because we are hitting the 250 MB Lambda limit.
So we want to decrease the size of the unzipped folder and asking for your suggestions… which tool should we use with Forest Admin for that ?

Sorry, we don’t have any recommendations about this type of tools. Have you tried a specific tool?

I tried using Webpack, but I saw this comment Webpack using forest-express-mongoose - #8 by Arnaud_Moncel so I thought it’s not a good idea to use it with Forest Admin.
Do you see any issues with Webpack ?

What tools do you currently use to build your project?
Sorry, as arnaud said, we’ve never tried Webpack with FA admin.

We use Serverless for building & running the project

I encourage you to try webpack but we have no customer feedback or experience to share with you :confused:
In v7, what is your package size?

The plugin serverless-plugin-include-dependencies was the solution to decrease the size