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

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