diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue index adc99e5ae5..9efa5b07be 100644 --- a/client/components/app/ConfigSideNav.vue +++ b/client/components/app/ConfigSideNav.vue @@ -15,11 +15,11 @@
diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index dbbc4d2666..58a133f3ce 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -116,7 +116,7 @@ diff --git a/client/components/modals/player/QueueItemRow.vue b/client/components/modals/player/QueueItemRow.vue index 31f49aa9c7..a067075cc0 100644 --- a/client/components/modals/player/QueueItemRow.vue +++ b/client/components/modals/player/QueueItemRow.vue @@ -55,7 +55,7 @@ export default { return this.item.coverPath }, coverUrl() { - if (!this.coverPath) return `${this.$config.routerBasePath}/book_placeholder.jpg` + if (!this.coverPath) return `${this.$config.public.routerBasePath}/book_placeholder.jpg` return this.$store.getters['globals/getLibraryItemCoverSrcById'](this.libraryItemId) }, bookCoverAspectRatio() { @@ -99,4 +99,4 @@ export default { .queue-item-row-content { max-width: calc(100% - 48px - 128px); } - \ No newline at end of file + diff --git a/client/nuxt.config.js b/client/nuxt.config.js index afaad6df87..7886550310 100644 --- a/client/nuxt.config.js +++ b/client/nuxt.config.js @@ -15,9 +15,11 @@ export default defineNuxtConfig({ }, telemetry: false, - publicRuntimeConfig: { - version: pkg.version, - routerBasePath + runtimeConfig: { + public: { + version: pkg.version, + routerBasePath + } }, // Global page headers: https://go.nuxtjs.dev/config-head diff --git a/client/pages/config/rss-feeds.vue b/client/pages/config/rss-feeds.vue index 68117a859c..7375e30e31 100644 --- a/client/pages/config/rss-feeds.vue +++ b/client/pages/config/rss-feeds.vue @@ -125,7 +125,7 @@ export default { return this.$strings.LabelUnknown }, coverUrl(feed) { - if (!feed.coverPath) return `${this.$config.routerBasePath}/Logo.png` + if (!feed.coverPath) return `${this.$config.public.routerBasePath}/Logo.png` return `${feed.feedUrl}/cover` }, async loadFeeds() { diff --git a/client/plugins/init.client.js b/client/plugins/init.client.js index 984ec9d0d7..74673a698f 100644 --- a/client/plugins/init.client.js +++ b/client/plugins/init.client.js @@ -181,5 +181,5 @@ export default ({ app, store }, inject) => { inject('eventBus', new Vue()) inject('isDev', process.env.NODE_ENV !== 'production') - store.commit('setRouterBasePath', app.$config.routerBasePath) + store.commit('setRouterBasePath', app.$config.public.routerBasePath) }