Skip to content

Commit

Permalink
fix(cli): update hosting without loosing config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz committed Aug 31, 2018
1 parent cad2ab6 commit f4705a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/utils/hosting/hosting.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ class Hosting {
}
}

this.config.browser_router = params.browser_router
const paramsToUpdate = {
name: this.name,
config: {
browser_router: params.browser_router
},
config: this.config,
domains
}

Expand Down Expand Up @@ -227,6 +226,7 @@ class Hosting {
this.name = hosting.name
this.description = hosting.description
this.domains = hosting.domains
this.config = hosting.config || {}
this.config.browser_router = hosting.config.browser_router || false
this.auth = hosting.auth
this.isUpToDate = await this.areFilesUpToDate()
Expand Down

0 comments on commit f4705a9

Please sign in to comment.