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-18 08:38:02 +00:00
|
|
|
apiAddress: 'https://node-go-api.herokuapp.com/api/v1',
|
|
|
|
endpoint: 'https://play-node-go.herokuapp.com',
|
2020-01-18 09:33:24 +00:00
|
|
|
authAddress: 'https://node-go-api.herokuapp.com/auth',
|
2020-01-18 08:38:02 +00:00
|
|
|
socketAddress: 'https://node-go-api.herokuapp.com'
|
2020-01-07 21:03:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const development = {
|
2020-01-18 03:57:27 +00:00
|
|
|
apiAddress: 'http://localhost:8000/api/v1',
|
2020-01-18 08:38:02 +00:00
|
|
|
authAddress: 'http://localhost:8000/auth',
|
|
|
|
endpoint: 'http://localhost:3000',
|
|
|
|
socketAddress: 'http://localhost:8000'
|
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
|
|
|
|
}
|