My NODE_ENV was set to "dev" and thus produced a not-so-obvious error in heroku
Error: Cannot find module './src/config/dev'
^ that did not mean too much to me initially.
The stack trace was even less informative then that. I suggest a try catch with a message about what valid values the NODE_ENV can be set to... and perhaps it could default to using the development.js file with a warning if no matching file can be found.
My NODE_ENV was set to "dev" and thus produced a not-so-obvious error in heroku
Error: Cannot find module './src/config/dev'
^ that did not mean too much to me initially.
The stack trace was even less informative then that. I suggest a try catch with a message about what valid values the NODE_ENV can be set to... and perhaps it could default to using the development.js file with a warning if no matching file can be found.
Thanks!