Created
August 16, 2017 17:17
-
-
Save jayair/db823bb5c07caad9b837d3c38b8e060c to your computer and use it in GitHub Desktop.
Dev & Prod setup for CRA config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dev = { | |
apiGateway: { | |
}, | |
cognito: { | |
} | |
}; | |
const prod = { | |
apiGateway: { | |
}, | |
cognito: { | |
} | |
}; | |
const config = process.env.REACT_APP_STAGE === 'production' | |
? prod | |
: dev; | |
export default { | |
...config | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment