windows launch node with variables code example
Example: windows launch node with variables
#Powershell
$env:NODE_ENV="production"; node .\index.js
#or with NPM
$env:NODE_ENV="production"; npm start
#CMD
set NODE_ENV=production && node .\index.js
#or with NPM
setn NODE_ENV=production && npm start