-
-
Couldn't load subscription status.
- Fork 1.4k
docs: improve Infura setup instructions in README and .js.env.example #21651
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
Conversation
…dated instructions
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
| # Sign up and generate your own keys at pubnub.com | ||
| # Then rename this file to ".js.env" and rebuild the app | ||
| # | ||
| # In order for this feature to work properly, you need to | ||
| # build metamask-extension from source (https://github.com/MetaMask/metamask-extension) | ||
| # and set your the same values there. | ||
| # | ||
| # For more info take a look at https://github.com/MetaMask/metamask-extension/pull/5955 | ||
|
|
||
| export MM_PUBNUB_SUB_KEY="" | ||
| export MM_PUBNUB_PUB_KEY="" | ||
| export MM_FOX_CODE="EXAMPLE_FOX_CODE" |
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.
| [!CAUTION] | ||
|
|
||
| > Without an Infura project ID, the app cannot connect to blockchain networks. | ||
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.
Adding section about Infura setup
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.
LGTM
f957d79 to
d1d09fd
Compare
.js.env.example
Outdated
| # MetaMask Swaps Origin Code | ||
| # This identifier is used to distinguish MetaMask's internal swap transactions | ||
| # from external dApp transactions. Used for: | ||
| # - Transaction origin tracking in swaps | ||
| # - Internal permissions system | ||
| # - Smart transaction logic | ||
| # - Security: differentiates trusted internal vs external transactions | ||
| export MM_FOX_CODE="EXAMPLE_FOX_CODE" |
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.
@MetaMask/swaps-engineers can you review this does it make sense?
|
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.
LGTM




Description
Improved the Infura project setup instructions to make it clearer for external contributors how to obtain and configure an Infura API key. The previous instructions referenced an outdated GitHub issue from 2018 and were buried deep in the Firebase setup section.
Changes made:
.js.env.examplewith concise, step-by-step Infura setup instructionsChangelog
CHANGELOG entry: null
Related issues
Fixes: N/A (proactive documentation improvement)
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a dedicated Infura setup section to README and updates .js.env.example with Infura guidance, removing outdated notes.
.js.env.example: Replaces outdated guidance with concise Infura setup instructions; setsMM_INFURA_PROJECT_ID="null"; documentsMM_FOX_CODEpurpose; retains existing env variables.Written by Cursor Bugbot for commit 6dad9a6. This will update automatically on new commits. Configure here.