diff --git a/webapp/src/apiService/index.ts b/webapp/src/apiService/index.ts index e308587..30c8e21 100644 --- a/webapp/src/apiService/index.ts +++ b/webapp/src/apiService/index.ts @@ -8,7 +8,7 @@ const locationPrefixWeb = window.location.pathname.match(/(.+)\/web/i); const baseURL = new URL( process.env.NODE_ENV === 'development' ? "http://localhost:8000" : - (!locationPrefixWeb ? '' : locationPrefixWeb[1]) + window.location.origin + (!locationPrefixWeb ? '' : locationPrefixWeb[1]) ); export const wsURL = baseURL + "socket" console.log({ baseURL, wsURL })