mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-11 15:32:41 +00:00
fix suggested by
Dean Mumby
This commit is contained in:
parent
2ad9761405
commit
33b6125d72
@ -6,9 +6,9 @@
|
|||||||
import { createApp } from 'vue';
|
import { createApp } from 'vue';
|
||||||
import io from 'socket.io-client';
|
import io from 'socket.io-client';
|
||||||
|
|
||||||
|
// fixes issues when people not hosting this site on local network
|
||||||
const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_GPT4ALL_API);
|
const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_GPT4ALL_API);
|
||||||
const socket = new io(URL);
|
const socket = new io(URL);
|
||||||
//const socket = new io(import.meta.env.VITE_GPT4ALL_API );
|
|
||||||
|
|
||||||
socket.onopen = () => {
|
socket.onopen = () => {
|
||||||
console.log('WebSocket connection established.');
|
console.log('WebSocket connection established.');
|
||||||
|
Loading…
Reference in New Issue
Block a user