Feature: use nuxt bridge to bundle client

This commit is contained in:
Aram Becker 2023-05-04 23:52:36 +02:00
parent 98c117f0b8
commit 228b5203a8
23 changed files with 8484 additions and 19783 deletions

View file

@ -18,8 +18,8 @@ export default function ({ $axios, store, $config }) {
}
console.log($config)
if ($config.routerBasePath) {
config.url = `${$config.routerBasePath}${config.url}`
if ($config.public.routerBasePath) {
config.url = `${$config.public.routerBasePath}${config.url}`
}
})

View file

@ -4,7 +4,7 @@ export default function ({ $config }) {
const link = document.createElement('link')
link.rel = 'icon'
link.type = 'image/x-icon'
link.href = `${$config.routerBasePath || ''}${faviconPath}`
link.href = `${$config.public.routerBasePath || ''}${faviconPath}`
document.head.appendChild(link)
}

View file

@ -182,5 +182,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)
}