-
Notifications
You must be signed in to change notification settings - Fork 475
[SUP-72] fix env replacements #8944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
ccschmitz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code here looks good to me, but not sure I understand the issue with the switch vs conditional 🤔 - mind sharing a little more info on that?
Also, do you think I need to do a similar replacement for OTLP_ENDPOINT in this PR?
@ccschmitz the switch vs conditional thing is a hack - when the conditional was used, since the env var was constant, the other branches were removed in the generated code you probably need to replace |
Summary
frontend-entrypointshould replace env variables that were set during the frontend build - this wasn't happening because the released docker builds have production values instead of dev onesAUTH_MODEchecks were being inlined by rollup? - fix that by using a switch statement because rollup doesn't seem to touch thatHow did you test this change?
doppler -c prod_aws run -- yarn buildandpython frontend-entrypoint.pylocally to validate that aconstantsfile was created with all 4 variables and that all 4 were replacedAre there any deployment considerations?
Does this work require review from our design team?