2020-01-09 19:51:45 +00:00
|
|
|
import runtimeEnv from '@mars/heroku-js-runtime-env';
|
|
|
|
const env = runtimeEnv();
|
|
|
|
|
2020-01-07 21:03:59 +00:00
|
|
|
const production = {
|
2020-01-09 19:41:24 +00:00
|
|
|
apiAddress: 'https://node-go-api.herokuapp.com',
|
|
|
|
endpoint: 'https://play-node-go.herokuapp.com'
|
2020-01-07 21:03:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const development = {
|
2020-01-08 07:18:08 +00:00
|
|
|
apiAddress: 'http://localhost:8000',
|
|
|
|
endpoint: 'http://localhost:3000'
|
2020-01-07 21:03:59 +00:00
|
|
|
}
|
|
|
|
|
2020-01-09 19:51:45 +00:00
|
|
|
const config = env.REACT_APP_ENVIRONMENT === 'production'
|
2020-01-07 21:03:59 +00:00
|
|
|
? production
|
|
|
|
: development
|
|
|
|
|
|
|
|
export default {
|
|
|
|
...config
|
|
|
|
}
|