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

@ -1,5 +1,5 @@
<template>
<div class="text-white max-h-screen h-screen overflow-hidden bg-bg">
<div class="text-white max-h-screen h-screen overflow-hidden bg-bg">
<app-appbar />
<app-side-rail v-if="isShowingSideRail" class="hidden md:block" />
@ -368,6 +368,7 @@ export default {
initializeSocket() {
this.socket = this.$nuxtSocket({
name: process.env.NODE_ENV === 'development' ? 'dev' : 'prod',
channel: this.$config.routerBasePath,
persist: 'main',
teardown: false,
transports: ['websocket'],