diff --git a/invokeai/frontend/web/src/services/events/middleware.ts b/invokeai/frontend/web/src/services/events/middleware.ts index 8fabe61af2..7ee9732820 100644 --- a/invokeai/frontend/web/src/services/events/middleware.ts +++ b/invokeai/frontend/web/src/services/events/middleware.ts @@ -32,8 +32,9 @@ import { OpenAPI } from 'services/api'; let socket_url = `ws://${window.location.host}`; console.log('socket middleware file loaded'); +console.log('OPENAPI.BASE: ', OpenAPI.BASE); // if building in package mode, replace socket url with open api base url minus the http protocol -if (import.meta.env.MODE === 'package' && OpenAPI.BASE) { +if (OpenAPI.BASE) { console.log('inside statement to set URL'); //eslint-disable-next-line socket_url = OpenAPI.BASE.replace(/^https?\:\/\//i, '');