-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: default shield env to main using dev local build #38522
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| let buildTypeEnv: BuildType = BUILD_TYPE.main; | ||
| if (isDevOrTestEnvironment()) { | ||
| if (isTestEnvironment()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local dev build with yarn start is pointing to prod env. Is it expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's the purpose of this PR, so it match local dev default for profile sync controller (also prod env)
Builds ready [5df6cdb]
UI Startup Metrics (1204 ± 115 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Previously dev local build shied config default to dev env but profile sync default to prd env which cause mismatch and require dev to update profile sync or shield env to match in local, this default shield env to use prd to match other services env.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Only TEST environment now maps to
devShield config; development defaults tomain, with a newisTestEnvironment()helper and refactored checks.loadShieldConfigto useisTestEnvironment(); only TEST env maps toBUILD_TYPE.dev, development now defaults toBUILD_TYPE.main.isTestEnvironment().isDevOrTestEnvironment()to callisTestEnvironment().Written by Cursor Bugbot for commit 5df6cdb. This will update automatically on new commits. Configure here.