Created
July 2, 2018 14:44
-
-
Save dennisschneider/0061586350a29535e3e1f1a442ecfddb to your computer and use it in GitHub Desktop.
Configure app based on environment variable
This file contains 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 = { | |
API_ENDPOINT: "" | |
}; | |
const prod = { | |
API_ENDPOINT: "" | |
}; | |
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