patch config for production
This commit is contained in:
parent
78ad0b18ec
commit
ffef145527
1 changed files with 7 additions and 5 deletions
|
@ -2,15 +2,17 @@ import runtimeEnv from '@mars/heroku-js-runtime-env';
|
||||||
const env = runtimeEnv();
|
const env = runtimeEnv();
|
||||||
|
|
||||||
const production = {
|
const production = {
|
||||||
apiAddress: 'https://node-go-api.herokuapp.com',
|
apiAddress: 'https://node-go-api.herokuapp.com/api/v1',
|
||||||
endpoint: 'https://play-node-go.herokuapp.com'
|
endpoint: 'https://play-node-go.herokuapp.com',
|
||||||
|
authAddress: 'https://play-node-go.herokuapp.com',
|
||||||
|
socketAddress: 'https://node-go-api.herokuapp.com'
|
||||||
}
|
}
|
||||||
|
|
||||||
const development = {
|
const development = {
|
||||||
authAddress: 'http://localhost:8000/auth',
|
|
||||||
apiAddress: 'http://localhost:8000/api/v1',
|
apiAddress: 'http://localhost:8000/api/v1',
|
||||||
socketAddress: 'http://localhost:8000',
|
authAddress: 'http://localhost:8000/auth',
|
||||||
endpoint: 'http://localhost:3000'
|
endpoint: 'http://localhost:3000',
|
||||||
|
socketAddress: 'http://localhost:8000'
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = env.REACT_APP_ENVIRONMENT === 'production'
|
const config = env.REACT_APP_ENVIRONMENT === 'production'
|
||||||
|
|
Loading…
Reference in a new issue