node-go/play-node-go/src/config.js
2020-01-09 12:32:03 -08:00

20 lines
No EOL
426 B
JavaScript

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
}