2024-07-18 04:46:17 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-07-18 03:42:49 +02:00
|
|
|
import { getEnv } from "./getenv";
|
|
|
|
import { lazy } from "./util";
|
|
|
|
|
|
|
|
export const WebServerEndpointVarName = "WAVE_SERVER_WEB_ENDPOINT";
|
|
|
|
export const WSServerEndpointVarName = "WAVE_SERVER_WS_ENDPOINT";
|
|
|
|
|
2024-07-18 03:49:27 +02:00
|
|
|
export const getWebServerEndpoint = lazy(() => `http://${getEnv(WebServerEndpointVarName)}`);
|
2024-07-18 03:42:49 +02:00
|
|
|
|
2024-07-18 03:49:27 +02:00
|
|
|
export const getWSServerEndpoint = lazy(() => `ws://${getEnv(WSServerEndpointVarName)}`);
|