]> Untitled Git - lemmy-ui.git/blob - src/shared/env.ts
be781558aad519e04150a37f10f07fa8b7409e5b
[lemmy-ui.git] / src / shared / env.ts
1 // TODO
2 // const host = `${window.location.hostname}`;
3 // const port = `${
4 //   window.location.port == '4444' ? '8536' : window.location.port
5 // }`;
6 // const endpoint = `${host}:${port}`;
7
8 // export const wsUri = `${
9 //   window.location.protocol == 'https:' ? 'wss://' : 'ws://'
10 // }${endpoint}/api/v1/ws`;
11
12 const host = '192.168.50.60';
13 const port = 8536;
14 const endpoint = `${host}:${port}`;
15 export const wsUri = `ws://${endpoint}/api/v1/ws`;