Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 17
Add shade.api_base override support #6
Copy link
Copy link
Closed
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:clientpriority:p3type:feature
Description
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:clientpriority:p3type:feature
Description
Teams running a self-hosted Shade backend or a staging environment at a custom URL need to override the default API base without changing the environment enum.
shade.api_baseshould provide an escape hatch that takes precedence over the URL resolved fromEnvironment.Proposed Steps
api_base: Optional[str] = NonetoShadeClientandconfig.py.api_basewhen set, otherwise fall back to theEnvironment-resolved URL.Acceptance Criteria
shade.api_base = "https://staging.shadeprotocol.io"routes all requests to that host.ShadeClient(api_base="http://localhost:8000")routes that client's requests locally.api_baseis set,Environmentstill controls the Stellar network passphrase.