SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Serverless Functions: Maximum supported size of dependencies when deploying Functions

When deploying Serverless Functions in Twilio, it's important to consider the size limitations of dependencies. The specific maximum supported size for node dependencies isn't explicitly detailed in the available resources, so this article will mention the maximum supported size and how you can check the size of your dependencies.

Maximum supported size of dependencies

The maximum supported size of dependencies when deploying your Serverless Functions is 250 MB.


How can you confirm if your deployment exceeds the supported size?

You can easily confirm the total size of your dependencies by running the following commands:

In Unix systems (Linux, MacOS):

  1. Install the dependencies by running npm install
  2. Check the exact disk usage by running du -sh node_modules

If the total size exceeds 250 MB, make sure to optimize the dependencies used so the total size is below the limit.

 

 

 

Have more questions? Submit a request
Powered by Zendesk