Skip to main content
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 in your application’s Environment variables.