Created
October 16, 2021 04:59
-
-
Save heriberto-codes/fbf015f52434a7d177f68928e5d76f37 to your computer and use it in GitHub Desktop.
Setting NODE_ENV for production or development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.env.NODE_ENV="production"; | |
| if(process.env.NODE_ENV === 'production') { | |
| // We are running in production mode | |
| } else { | |
| // We are running in development mode | |
| } | |
| console.log(`We are running in ${process.env.NODE_ENV} mode 🏃♂️`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment