node-go/play-node-go/src/config.js
2020-01-18 01:33:24 -08:00

24 lines
No EOL
638 B
JavaScript

import runtimeEnv from '@mars/heroku-js-runtime-env';
const env = runtimeEnv();
const production = {
apiAddress: 'https://node-go-api.herokuapp.com/api/v1',
endpoint: 'https://play-node-go.herokuapp.com',
authAddress: 'https://node-go-api.herokuapp.com/auth',
socketAddress: 'https://node-go-api.herokuapp.com'
}
const development = {
apiAddress: 'http://localhost:8000/api/v1',
authAddress: 'http://localhost:8000/auth',
endpoint: 'http://localhost:3000',
socketAddress: 'http://localhost:8000'
}
const config = env.REACT_APP_ENVIRONMENT === 'production'
? production
: development
export default {
...config
}