When deploying a Node.js application, if the NODE_ENVenvironment variableย hasnโ€™t been set to production, you may see the following warning:
Skip Pruning Because NODE_ENV is Not โ€˜Productionโ€™
This occurs because the NODE_ENVย variable isnโ€™t set to production by default during application creation. To resolve or prevent this issue, manually add the NODE_ENVย environment variableย when adding your applicationย or in your applicationโ€™s Environment variables. If you add the environment variable after the application has been created, you can redeploy it using Deploy changes.