diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-07 19:19:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-07 19:19:00 +0900 |
| commit | aa4ef6745ad798bd7d4f05cb397ef1dd85279814 (patch) | |
| tree | d34ded516f52b91c4ff1a5443776ce22d8f483f0 /src/utils/environmentInfo.ts | |
| parent | Refactorijg (diff) | |
| download | sharkey-aa4ef6745ad798bd7d4f05cb397ef1dd85279814.tar.gz sharkey-aa4ef6745ad798bd7d4f05cb397ef1dd85279814.tar.bz2 sharkey-aa4ef6745ad798bd7d4f05cb397ef1dd85279814.zip | |
Refactorng
Diffstat (limited to 'src/utils/environmentInfo.ts')
| -rw-r--r-- | src/utils/environmentInfo.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/utils/environmentInfo.ts b/src/utils/environmentInfo.ts deleted file mode 100644 index e6084cde0e..0000000000 --- a/src/utils/environmentInfo.ts +++ /dev/null @@ -1,14 +0,0 @@ -import Logger from './logger'; - -export default class { - public static show(): void { - const env = process.env.NODE_ENV; - const 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'); - } - } -} |