Node.js · Junior · Question 74 of 75

What does setting NODE_ENV=production usually do?

Explanation

Node.js itself does not treat NODE_ENV specially. It's a convention that frameworks and your own code read to switch behavior.

Further reading

Problem with a question

Node.js · Junior · question 74

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz