Closed Spejbl closed 4 years ago
Moves env variables from front-end to server side into CI/CD Platform and injects them into window object from which one we can easily use them
window
None
Reduces the accessibility of env variables in front-end repository
ENV Variables won't be available inside process.env.${ENV_NAME} object anymore. You can access them from window.ENV.${ENV_NAME}
process.env.${ENV_NAME}
window.ENV.${ENV_NAME}
Testing Local env
npm start
Testing Staging/Production - will be possible after merging this PR
NaN
Description of the Change
Moves env variables from front-end to server side into CI/CD Platform and injects them into
window
object from which one we can easily use themAlternate Designs
None
Benefits
Reduces the accessibility of env variables in front-end repository
Possible Drawbacks
ENV Variables won't be available inside
process.env.${ENV_NAME}
object anymore. You can access them fromwindow.ENV.${ENV_NAME}
Verification Process
Testing Local env
npm start
should be functional as before without any noticeable issuesTesting Staging/Production - will be possible after merging this PR
Github Issues
NaN