Fix: apply base path to client and websocket

This commit is contained in:
sandreas 2022-06-01 22:07:54 +02:00 committed by Aram Becker
parent dadd41cb5c
commit 97e8d4f5c0
6 changed files with 565 additions and 9 deletions

View file

@ -16,6 +16,10 @@ export default function ({ $axios, store, $config }) {
config.url = `/dev${config.url}`
console.log('Making request to ' + config.url)
}
if ($config.routerBasePath) {
config.url = `${$config.routerBasePath}/${config.url}`
}
})
$axios.onError(error => {