2023-03-14 15:55:31 +00:00
|
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import { config } from './config';
|
|
|
|
import {
|
|
|
|
getEnvironment,
|
2024-03-01 21:52:17 +00:00
|
|
|
isTestEnvironment,
|
2023-03-14 15:55:31 +00:00
|
|
|
parseEnvironment,
|
|
|
|
setEnvironment,
|
|
|
|
} from '../environment';
|
|
|
|
|
|
|
|
setEnvironment(parseEnvironment(config.environment));
|
|
|
|
|
|
|
|
const environment = getEnvironment();
|
|
|
|
|
2024-03-01 21:52:17 +00:00
|
|
|
const isTestOrMockEnvironment =
|
|
|
|
isTestEnvironment(environment) || Boolean(process.env.MOCK_TEST);
|
|
|
|
|
|
|
|
export { environment, isTestOrMockEnvironment };
|