The app.configure() function has been removed in Express 4
xx7y7xx opened this issue · comments
I saw app.configure()
was used in README.md
and example/app.js
. But in the latest version of Express (4.x), The configure
function was removed.
https://expressjs.com/en/guide/migrating-4.html#other-changes
The app.configure() function has been removed. Use the process.env.NODE_ENV or app.get('env') function to detect the environment and configure the app accordingly.
+1
+1
Yeah, please update the example setup, newcomer's mind will blow up