Last active
March 9, 2022 09:16
-
-
Save henryruhs/0898886a8495f19e489d4e86df1b4bad to your computer and use it in GitHub Desktop.
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
export const environmentHelper = environment => | |
{ | |
if (environment === 'dev') | |
{ | |
return require('./environment.dev'); | |
} | |
if (environment === 'stage') | |
{ | |
return require('./environment.stage'); | |
} | |
if (environment === 'prod') | |
{ | |
return require('./environment.prod'); | |
} | |
} | |
export default environmentHelper(process.env.REACT_APP_ENV); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment