Skip to content
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

fix: Fix issue with incorrect base URL generation due to empty string in region variable #292

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

brunomiguelpinto
Copy link
Contributor

@brunomiguelpinto brunomiguelpinto commented Oct 24, 2024

This PR addresses an issue where an empty string in the region variable resulted in an incorrect base URL being generated, specifically https://api. {region}getlago.com/api/v1 instead of https://api.getlago.com/api/v1.

The previous configuration for the region variable used an empty string as the default, which caused the incorrect URL structure. The fix involves adjusting the default value of the region variable and ensuring that the resulting URL is properly constructed as https://api.getlago.com/api/v1 when no region is specified.

Screenshot 2024-10-24 at 12 33 05 PM Screenshot 2024-10-24 at 12 33 00 PM

@brunomiguelpinto brunomiguelpinto changed the title fix: empty default region fix: Fix issue with incorrect base URL generation due to empty string in region variable Oct 24, 2024
@brunomiguelpinto brunomiguelpinto self-assigned this Oct 24, 2024
@brunomiguelpinto brunomiguelpinto added the documentation Improvements or additions to documentation label Oct 24, 2024
@brunomiguelpinto brunomiguelpinto merged commit dd6fd57 into main Oct 24, 2024
3 checks passed
@brunomiguelpinto brunomiguelpinto deleted the doc-fix-empty-region branch October 24, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants