Q4: What is the purpose of NODE_ENV environment variable?
NODE_ENV sets the execution environment (e.g., production, development). Libraries like Express optimize performance when set to production.
Key Takeaways
- Distinguishes development, testing, and production environments.
- Enables runtime performance optimizations when set to
production.
Knowledge Check
What optimization does Express perform when NODE_ENV is set to 'production'?