Skip to main contentWhen 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.