feat(web): add per-network betterstack url configuration#625
Open
silent-cipher wants to merge 4 commits into
Open
feat(web): add per-network betterstack url configuration#625silent-cipher wants to merge 4 commits into
silent-cipher wants to merge 4 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the web app’s BetterStack configuration to support per-network URLs (mainnet vs calibration), building on the multi-network support introduced in #576. It adds new env/runtime config keys and updates the landing page config resolution logic to prefer network-scoped URLs with a global fallback for existing single-network deployments.
Changes:
- Add per-network
DASHBOARD_URLandLOGS_URLconfig keys (Vite env + runtimewindow.__DEALBOT_CONFIG__). - Update landing-page config resolution to prefer per-network URLs with a global fallback.
- Document the new env vars in
apps/web/.env.exampleand plumb them through the Docker runtime config generator.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/web/src/vite-env.d.ts | Adds typings for per-network dashboard/logs env + runtime config keys. |
| apps/web/src/pages/Landing.tsx | Introduces getNetworkConfigUrl and resolves dashboard/logs URLs per network with fallback. |
| apps/web/docker-entrypoint.sh | Injects per-network dashboard/logs URLs into window.__DEALBOT_CONFIG__ at container start. |
| apps/web/.env.example | Documents new per-network BetterStack URL variables and fallback behavior. |
BigLep
approved these changes
Jul 1, 2026
BigLep
left a comment
Contributor
There was a problem hiding this comment.
Approving. Quick scan seems right and this is low risk to get wrong.
…k-betterstack-urls
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.
Built on top of #576