mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-13 13:39:48 +01:00
10 lines
387 B
TypeScript
10 lines
387 B
TypeScript
|
import { getEnv } from "./getenv";
|
||
|
import { lazy } from "./util";
|
||
|
|
||
|
export const WebServerEndpointVarName = "WAVE_SERVER_WEB_ENDPOINT";
|
||
|
export const WSServerEndpointVarName = "WAVE_SERVER_WS_ENDPOINT";
|
||
|
|
||
|
export const getServerWebEndpoint = lazy(() => `http://${getEnv(WebServerEndpointVarName)}`);
|
||
|
|
||
|
export const getServerWSEndpoint = lazy(() => `ws://${getEnv(WSServerEndpointVarName)}`);
|