import runtimeEnv from '@mars/heroku-js-runtime-env'; const env = runtimeEnv(); const production = { apiAddress: 'https://node-go-api.herokuapp.com', endpoint: 'https://play-node-go.herokuapp.com' } const development = { apiAddress: 'http://localhost:8000', endpoint: 'http://localhost:3000' } const config = env.REACT_APP_ENVIRONMENT === 'production' ? production : development export default { ...config }