From 0c4b7d161639ddc5b3b7238496ffcfa097a98713 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 20 Sep 2021 00:51:25 +0200 Subject: [PATCH] Fix build (thanks axolotle <3) --- app/vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vue.config.js b/app/vue.config.js index 983dd930..f4edb73d 100644 --- a/app/vue.config.js +++ b/app/vue.config.js @@ -58,7 +58,7 @@ module.exports = { } }, publicPath: '/yunohost/admin', - devServer: { + devServer: process.env.NODE_ENV === 'development' ? { public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), https: false, disableHostCheck: true, @@ -74,5 +74,5 @@ module.exports = { aggregateTimeout: 300, poll: 1000 }, - } + } : {} }