add logging HELP

This commit is contained in:
Mary Hipp 2023-04-05 14:48:02 -04:00
parent 7e0813c87e
commit 49f88046fa

View File

@ -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, '');