20 lines
No EOL
426 B
JavaScript
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
|
|
} |