Support Topics Documentation Slack YouTube Blog

Node_modules dependencies require more than 20Mb

Hello!

We have used some additional nodejs packages in server side custom logic (please see package.json below). Now, the weight of node_modules is more than 20Mb and system goes down in 48 hours.

We plan to move some logic out from backendless, but maybe is there any chance to use more than 20Mb of space for custom logic? At least for node modules.

Here is the package.json:

{
“name”: “project-name”,
“version”: “1.0.0”,
“scripts”: {
“debug”: “coderunner debug”,
“deploy”: “coderunner deploy”
},
“devDependencies”: {
“backendless-coderunner”: “^4.6.6”
},
“license”: “MIT”,
“dependencies”: {
“graphql”: “^14.3.1”,
“graphql-tools”: “^4.0.4”,
“lodash”: “^4.17.11”,
“moment”: “^2.24.0”,
“ms”: “^2.1.2”,
“node-mailjet”: “^3.3.1”,
“pseudomap”: “^1.0.2”,
“sharp”: “^0.23.7”
}
}

Thank you!

Hello @andrey-olishchuk

Perhaps one of the tips from this topic will help you - Increase size limit for server code

Hello,
Sorry, but currently there is no possibility to get more space than 20mb for BL, and I believe your runnable takes less than 20mb, try to exclude any non-runnable (*.md, .image, /example/.js, …) files before deploy

here are a few links which maybe helpful for you:

https://backendless.com/docs/bl-js/bl_troubleshooting.html#the-size-of-my-code-is-bigger-than-allowed-in-the-current-payment-tier

Regards, Vlad