setting up condition for production and development env using NODE_ENV