const environment = process . env . NODE_ENV ; const DEV_HOST = 'http://localhost.playos.io/' ; const config = { development : { appName : 'Authentication' , namespace : 'io.playos.authentication' , apiUrl : DEV_HOST + 'Api' , domain : DEV_HOST + 'authentication/' , host : DEV_HOST , homeUrl : DEV_HOST + 'home/' , providerDetails : { httpHost : 'http://localhost:8545/' , chainId : 929 , coreAddress : '0xc660ac9d984c1a65ab499c93e5749bdb0b4518f5' , } , coreAddress : '0xb8e0baafd907f3289dbdc0a5174ba786f4b78cf2' , } , production : { appName : 'Authentication' , namespace : 'io.playos.authentication' , apiUrl : '/Api' , domain : '/' , host : '/' , homeUrl : '#/home' , providerDetails : { httpHost : 'http://localhost:8545/' , chainId : 929 , coreAddress : '0xc660ac9d984c1a65ab499c93e5749bdb0b4518f5' , } , coreAddress : '0xb8e0baafd907f3289dbdc0a5174ba786f4b78cf2' , } , } ; config . development = config . production ; export default class Configuration { static get ( key ) { return config [ environment ] [ key ] ; } static set ( key , value ) { config [ environment ] [ key ] = value ; } static getEnvironment ( ) { return environment ; } }