signal-desktop/ts/context/environment.ts
2024-04-16 13:13:02 -07:00

18 lines
363 B
TypeScript

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { config } from './config';
import {
getEnvironment,
parseEnvironment,
setEnvironment,
} from '../environment';
setEnvironment(
parseEnvironment(config.environment),
config.isMockTestEnvironment
);
const environment = getEnvironment();
export { environment };