From f4705a94f82b138f52152e9de998d670769d8d70 Mon Sep 17 00:00:00 2001 From: mkucharz Date: Fri, 31 Aug 2018 14:03:28 +0200 Subject: [PATCH] fix(cli): update hosting without loosing config --- packages/cli/src/utils/hosting/hosting.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/utils/hosting/hosting.js b/packages/cli/src/utils/hosting/hosting.js index bb783f74..5307c94d 100644 --- a/packages/cli/src/utils/hosting/hosting.js +++ b/packages/cli/src/utils/hosting/hosting.js @@ -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 } @@ -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()