Skip to content

Needs better error handling for NODE_ENV value #40

Open
@LMS007

Description

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!

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions