express-handlebars icon indicating copy to clipboard operation
express-handlebars copied to clipboard

Possible documentation issue regarding NODE_ENV

Open brentpayton opened this issue 8 years ago • 1 comments

Should the line

process.env.NODE_ENV === "dev";

be

process.env.NODE_ENV = "dev";

?

brentpayton avatar Feb 01 '17 18:02 brentpayton

No. You should not assign NODE_ENV in your code, this value comes from the system path variables. The documention is explaining something that happens only in dev mode, OR: process.env.NODE_ENV === "development"

pietrofxq avatar Oct 03 '17 20:10 pietrofxq