process.env.NODE_ENV === 'production' code example
Example: process.env.production
export NODE_ENV=production
# Or if you are in windows you could try this:
SET NODE_ENV=production
export NODE_ENV=production
# Or if you are in windows you could try this:
SET NODE_ENV=production