mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
13 lines
445 B
TypeScript
13 lines
445 B
TypeScript
/**
|
|
* This file contains a list of constants that may need to be resolved at runtime
|
|
*/
|
|
|
|
// =================================================
|
|
// resolve running environment
|
|
const env = process.env.NODE_ENV || 'production';
|
|
|
|
export const isTest = Boolean(process.env.IS_TEST);
|
|
export const environment = isTest ? 'test' : env;
|
|
export const isDocker = env === 'docker';
|
|
export const isProduction = isDocker || (env === 'production' && !isTest);
|