app.get(env) === development

  node.js, question

App.get (env) = = = difference between development and process.env.node _ env = = =’ development’

App.get(env) gets the value of env;

NODE_ENV gets the value of node _ env above env;

What do you mean by these two lines of code appearing in express?

Another thing is that we usually write code in local development versions. Online production version

Local development version default app.get(env) = development;;

How are the environment variables basically set in the online version

Get (env) = production;

The two should be equivalent because app.get(‘env’) and process.env.NODE_ENV get the same value.