chore: Update tinygraphs url#296
Draft
brunomenezes wants to merge 2 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Coverage Report for CI Build 27959693301Coverage increased (+0.03%) to 66.43%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
* In case of missing environment variable it will use a default provided by Cartesi.
ef9789f to
1cec19c
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
Refactors the tinygraphs service URL resolution from a hardcoded string literal to a dynamic, environment-backed configuration fallback.
Why
For context: We are revisiting our infrastructure and, as part of moving services from one place to another (Tinygraph is one of them), much-needed changes are underway.
The tinygraphs base URL was previously hardcoded, restricting environment-specific customization. This change decouples the infrastructure dependency from the codebase, allowing seamless flexibility across local, staging, and production environments without code modifications.
What Changed
NEXT_PUBLIC_TINYGRAPHS_URLas a public environment variable. Updated.env.developmentand production environment templates.process.env.NEXT_PUBLIC_TINYGRAPHS_URL || DEFAULT_CARTESI_ENDPOINT).<link rel="preconnect">tags to dynamically inject the resolved URL, preserving optimization and prefetching benefits for custom endpoints.Behavior
Backward Compatibility
Notes
This change reduces hardcoded infrastructure assumptions.