Skip to content

Conversation

@carlosantoniodasilva
Copy link
Member

Let Config initialize itself with JUDOSCALE_URL by default, and check for the need to set the URL for the legacy Render support as a last step.

Inline all per-platform initialization logic to simplify. Very little change between them, and it feels more work to maintain separate methods and keep adding to them when they're mostly the same.

This better matches how the other packages initializes the config, and simplifies this flow a bit, since the platforms all respect JUDOSCALE_URL when set.

Copy link
Contributor

@adamlogic adamlogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better!

Base automatically changed from ca-judoscale-container to main February 3, 2026 13:41
Let Config initialize itself with JUDOSCALE_URL from all containers /
platforms, and only on Render where we may need the legacy fallback we
can check whether API_BASE_URL was set, and if not set it with the
legacty URL based on the service/instance.

This better matches how the other packages initializes the config, and
simplifies this flow a bit, since the platforms all respect
JUDOSCALE_URL when set.
Very little change between these, and it feels more work to keep
separate methods than it is for them to share a single init method that
we can refactor further.
@carlosantoniodasilva carlosantoniodasilva merged commit 22b85e1 into main Feb 3, 2026
6 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-refactor-config-init branch February 3, 2026 13:46
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.

3 participants