location fix

This commit is contained in:
ari committed 2022-06-04 16:09:52 -04:00
1 parent e222c42150
commit e72c83b980
1 file changed
+1 -1
+1 -1
View File
@@ -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 })