mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-23 22:45:11 +00:00
13 lines
388 B
TypeScript
13 lines
388 B
TypeScript
import Logger from './logger';
|
|
|
|
export default class {
|
|
static show(): void {
|
|
const env = process.env.NODE_ENV;
|
|
let logger = new Logger('Env');
|
|
logger.info(typeof env == 'undefined' ? 'NODE_ENV is not set' : `NODE_ENV: ${env}`);
|
|
if (env !== 'production') {
|
|
logger.warn('The environment is not in production mode');
|
|
logger.warn('Do not use for production purpose');
|
|
}
|
|
}
|
|
}
|