feat: devnet build configuration#180
Merged
WiktorStarczewski merged 2 commits intomainfrom Apr 10, 2026
Merged
Conversation
Build-time configurable devnet support: set MIDEN_NETWORK=devnet to produce a devnet wallet with blue/gray branding, devnet endpoints, and "(Devnet)" manifest name. Testnet remains the default. New scripts: build:devnet, dev:devnet, build:mobile:devnet, build:desktop:devnet
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
MIDEN_NETWORKenv variable to control build-time network targeting (default:testnet)yarn build:devnetproduces a devnet extension with blue/gray branding, devnet endpoints, and "Miden Wallet (Devnet)" manifest name#FF5500,#EE622F, etc.) with network-conditional constants fromsrc/utils/brand-colors.tsNew build scripts
yarn build:devnet— extensionyarn dev:devnet— extension dev watchyarn build:mobile:devnet— mobileyarn build:desktop:devnet— desktopHow it works
One env variable (
MIDEN_NETWORK) drives everything:EnvironmentPlugininjects it into all 7 build configsDEFAULT_NETWORK→ controls endpointsprocess.env.MIDEN_NETWORK→ controls CSS colorsDEFAULT_NETWORK→ controls inline/SVG colorsA plain
yarn build(no env var) is unchanged — testnet by default.Test plan
yarn buildproduces testnet extension (orange, "Miden Wallet")yarn build:devnetproduces devnet extension (blue/gray, "Miden Wallet (Devnet)")yarn test— 1639 tests passingyarn lint— clean (0 warnings)