sistemare class type boolean....

This commit is contained in:
paolo
2018-11-05 22:28:59 +01:00
parent c81e816d97
commit 03d57ba50e
22 changed files with 439 additions and 339 deletions

18
src/utils/config.ts Normal file
View File

@@ -0,0 +1,18 @@
import dotenv from 'dotenv'
dotenv.config()
let path
switch (process.env.NODE_ENV) {
case 'test':
path = `${__dirname}/../../.env.test`
break
case 'production':
path = `${__dirname}/../../.env.production`
break
default:
path = `${__dirname}/../../.env.development`
}
dotenv.config({ path })
export const APP_ID = process.env.APP_ID
export const LOG_LEVEL = process.env.LOG_LEVEL