Skip to content

feat: Allow the stage to be overridden at runtime#99

Merged
eberle1080 merged 1 commit into
mainfrom
feat/stage-override
Aug 13, 2024
Merged

feat: Allow the stage to be overridden at runtime#99
eberle1080 merged 1 commit into
mainfrom
feat/stage-override

Conversation

@eberle1080

@eberle1080 eberle1080 commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

Right now most runtime vars can be overridden (api endpoint, clerk login endpoint, etc). This lets us use prod binaries against dev and staging, which is useful.

However stage is hard-coded. This makes the program slightly clunky because the local paths it uses to store credentials are mis-matched. This can be worked around, but it's just kind of confusing.

This allows the caller to override the effective stage by setting AMP_STAGE_OVERRIDE, which will eliminate the mismatched credentials confusion.

@eberle1080 eberle1080 requested review from a team, RajatPawar and jlimatampersand and removed request for a team and RajatPawar August 8, 2024 20:23
@eberle1080 eberle1080 merged commit c1645d6 into main Aug 13, 2024
@eberle1080 eberle1080 deleted the feat/stage-override branch August 13, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants