- creating Alternative to SyncManager

- fix: refreshing with FF now it works!
This commit is contained in:
Paolo Arena
2019-02-08 17:10:25 +01:00
parent 5ee0d8e171
commit b65d0a2386
18 changed files with 340 additions and 195 deletions

View File

@@ -6,13 +6,17 @@ switch (process.env.NODE_ENV) {
case 'test':
path = `${__dirname}/../../.env.test`
break
case 'production':
path = `${__dirname}/../../.env.production`
case 'development':
path = `${__dirname}/../../.env.development`
break
default:
path = `${__dirname}/../../.env.development`
path = `${__dirname}/../../.env.production`
}
dotenv.config({ path })
console.log('path', path)
console.log('process.env.APP_ID', process.env.APP_ID)
export const APP_ID = process.env.APP_ID
export const LOG_LEVEL = process.env.LOG_LEVEL