diff --git a/src/utils/useSSE.ts b/src/utils/useSSE.ts index 1ace2a8..83220eb 100644 --- a/src/utils/useSSE.ts +++ b/src/utils/useSSE.ts @@ -3,8 +3,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill'; import { generateUUID } from './uuidUtils'; import { getToken } from '@/utils/auth'; -// const defaultServerUrl = 'http://192.168.1.38:18081/sse'; -const defaultServerUrl = 'http://127.0.0.1:18081/sse'; +const defaultServerUrl = import.meta.env.VITE_APP_BASE_URL + '/sse'; interface EventData { timestamp: string;