From 49f88046fa39a918eb95d9abbd1d9a38eb0cf0b4 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 5 Apr 2023 14:48:02 -0400 Subject: [PATCH] add logging HELP --- invokeai/frontend/web/src/services/events/middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, '');