diff --git a/web/src/services/websocket.js b/web/src/services/websocket.js index 555f1eb5..6eb18c07 100644 --- a/web/src/services/websocket.js +++ b/web/src/services/websocket.js @@ -6,9 +6,9 @@ import { createApp } from 'vue'; 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 socket = new io(URL); -//const socket = new io(import.meta.env.VITE_GPT4ALL_API ); socket.onopen = () => { console.log('WebSocket connection established.');