Skip to content

Commit

Permalink
Fix #103: log NODE_ENV on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade committed May 25, 2016
1 parent f937d54 commit b6b02bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-server-cli/src/startServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,7 @@ const logProductionWarnings = ({hot, minify, jsUrl, longTermCaching}) => {
if (!longTermCaching) {
logger.warning("-- Long-term caching is disabled. To enable, set longTermCaching to true (--long-term-caching at the command-line) or set NODE_ENV=production to turn on.");
}

if (process.env.NODE_ENV !== "production") { //eslint-disable-line no-process-env
logger.warning("-- NODE_ENV is not set to \"production\".");
}
logger.info(`NODE_ENV is set to ${process.env.NODE_ENV}`);
}

}

0 comments on commit b6b02bf

Please sign in to comment.