mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
13 lines
464 B
TypeScript
13 lines
464 B
TypeScript
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { getEnv } from "./getenv";
|
|
import { lazy } from "./util";
|
|
|
|
export const WebServerEndpointVarName = "WAVE_SERVER_WEB_ENDPOINT";
|
|
export const WSServerEndpointVarName = "WAVE_SERVER_WS_ENDPOINT";
|
|
|
|
export const getWebServerEndpoint = lazy(() => `http://${getEnv(WebServerEndpointVarName)}`);
|
|
|
|
export const getWSServerEndpoint = lazy(() => `ws://${getEnv(WSServerEndpointVarName)}`);
|