Address issues with computeds on apiUrl and disable source maps

Source maps bloat up the dist folder which causes problems on IPFS
This commit is contained in:
root
2022-08-18 22:34:50 +05:30
parent f7afa642b7
commit 29a17a0506
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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 () {
+1
View File
@@ -39,5 +39,6 @@ module.exports = {
}
},
productionSourceMap: false,
lintOnSave: false
}