From 29a17a050650e2fe965aa36abda474dc943174db Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Aug 2022 22:34:50 +0530 Subject: [PATCH] Address issues with computeds on apiUrl and disable source maps Source maps bloat up the dist folder which causes problems on IPFS --- src/store/prefs-store.js | 2 +- vue.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/prefs-store.js b/src/store/prefs-store.js index cd1d396..f6dfb06 100644 --- a/src/store/prefs-store.js +++ b/src/store/prefs-store.js @@ -82,7 +82,7 @@ const PrefsStore = { }, apiUrl (state, getters) { - return getters.getPreference('instance', process.env.VUE_APP_PIPED_URL || 'https://pipedapi-libre.kavin.rocks') + return state.prefs.instance ?? process.env.VUE_APP_PIPED_URL ?? 'https://pipedapi-libre.kavin.rocks' }, isEmbedded () { diff --git a/vue.config.js b/vue.config.js index fd02058..2a680b5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,5 +39,6 @@ module.exports = { } }, + productionSourceMap: false, lintOnSave: false }