node-go/play-node-go/src/config.js

24 lines
638 B
JavaScript
Raw Normal View History

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 = {
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
}
const config = env.REACT_APP_ENVIRONMENT === 'production'
2020-01-07 21:03:59 +00:00
? production
: development
export default {
...config
}