Skip to content

Conversation

@aleksip
Copy link

@aleksip aleksip commented Aug 11, 2017

If ENV.hoodie contains only configuration for the client, hoodieMiddleware() still tries to start Hoodie Server, which results in an error. This PR changes the check to be specific to the server configuration only.

var appConfig = this.project.config(config.options.environment);
/* jshint +W040 */

if (!appConfig.hoodie) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it’s been a while since I looked at the code, but I think we should check for both?

if (!appConfig.hoodie || !appConfig.hoodie.server) {

what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants