Set common production mode.
Section: Environment Variables and NODE_OPTIONS
Run with NODE_ENV=production
bash
bash
NODE_ENV=production node app.jsExplanation
Frequently used by frameworks and libraries to alter runtime behavior.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Environment Variables and NODE_OPTIONS