Decrease Cloud Code deployment size

Hello @Donovan_Hardwick,

the deployment size includes all files you’re created along with dependency modules (node_modules) that you are using.
You can check the size of the deployment model using the following command when deploy:
npm run deploy -- --verbose --keep-zip --zip-size-confirmation

To reduce the deployment size, consider minimizing the installation of the dependencies to only the ones your code needs/uses. Additionally, you may apply additional filtering to identify what should be skipped from the dependent module’s folder. For instance, if {some_module} has the examples folder you may omit its inclusion by adding the following exclusion pattern in app.files of the coderunner.json file - !node_modules/some_module/examples.

More information:
The size of my code is bigger than allowed in the current payment tier

Regards,
Stanislaw