Fixed frontend to work for non subdomain.

This commit is contained in:
ArabCoders 2023-11-25 17:59:33 +03:00
parent 3e5e318ef5
commit 8b770c789e
2 changed files with 4 additions and 1 deletions

View file

@ -39,7 +39,9 @@ const completed = reactive({});
const video_link = ref('');
onMounted(() => {
const socket = io(process.env.VUE_APP_BASE_URL);
const socket = io(process.env.VUE_APP_BASE_URL, {
path: document.location.pathname + 'socket.io',
});
socket.on('connect', () => config.isConnected = true);
socket.on('disconnect', () => config.isConnected = false);

View file

@ -1,4 +1,5 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
publicPath: './',
transpileDependencies: true
})