Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Disable node modeuls folder caching on heroku to reduce slug size?

I am trying to disable node modules on heroku to decrease the slug size for better bootup time, any idea where to use the following command ?

heroku config:set NODE_MODULES_CACHE=false

Src

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You need to install Heroku CLI. And you will run that command on the terminal.

Useful links =>

https://devcenter.heroku.com/articles/heroku-cli

https://devcenter.heroku.com/articles/config-vars#using-the-heroku-cli


Also, there is a UI for managing configs.

https://devcenter.heroku.com/articles/config-vars#using-the-heroku-dashboard

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading