fix: env var override for base URL in fresh CLI contexts#51
Merged
George-iam merged 1 commit intomainfrom Mar 19, 2026
Merged
Conversation
eec50aa to
450ed72
Compare
When no config file exists (e.g. CI), CLI creates a default context with BaseURL=http://127.0.0.1:8100. Previously, env var overrides only applied when BaseURL was empty — so AXME_GATEWAY_BASE_URL was ignored. Now env vars override the default localhost URL: - AXME_PORTAL_BASE_URL, AXME_GATEWAY_BASE_URL, AXME_BASE_URL → base URL - AXME_GATEWAY_API_KEY, AXME_API_KEY → API key This fixes E2E tests in CI where CLI was connecting to localhost instead of the staging gateway URL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
450ed72 to
4256e99
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLI creates default context with
BaseURL=http://127.0.0.1:8100when no config exists. Env var overrides (AXME_GATEWAY_BASE_URL,AXME_BASE_URL) only applied when BaseURL was empty — so they were ignored in CI.Now env vars override the default localhost URL:
AXME_PORTAL_BASE_URL,AXME_GATEWAY_BASE_URL,AXME_BASE_URL→ base URLAXME_GATEWAY_API_KEY,AXME_API_KEY→ API keyRoot cause of E2E failures: CLI connected to localhost instead of staging.
Test plan
🤖 Generated with Claude Code