Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Byron Gravenorst <[email protected]>
  • Loading branch information
alexandratran and bgravenorst authored Sep 26, 2024
1 parent 7046699 commit b3d786e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).

## September 2024

- Updated [Services credit cost](/services/get-started/pricing/credit-cost/#ethereum) for `eth_sendRawTransaction`.
- Updated [credit cost](/services/get-started/pricing/credit-cost/#ethereum) for `eth_sendRawTransaction`.
([#1581](https://github.com/MetaMask/metamask-docs/pull/1581))
- Documented WebSocket support for [Base](/services/reference/base),
[Blast](/services/reference/blast), [Celo](/services/reference/celo),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ reverse_proxy https://localhost:9000 https://sepolia.infura.io {
Ensure you replace `<YOUR-API-KEY>` with the API key for your Ethereum project.

In this example, the reverse proxy retrieves information from `localhost:9000`, and redirects it to `localhost:3000`.
If `localhost:9000` stops responding, Caddy will move on to retrieve information from the Infura Sepolia endpoint.
If `localhost:9000` stops responding, Caddy will move on to retrieve information from the Sepolia endpoint.
Using `header_up Host` allows you to include your API key to both the Sepolia and localhost endpoints.

### 6. Run the reverse proxy
Expand Down Expand Up @@ -145,7 +145,7 @@ Reverse proxy success!

The success message from `main.js` should display, because you've asked the reverse proxy to go to `localhost:9000` first.

If you close the Node.js server and send the request again, you should get the result from the Infura Sepolia node:
If you close the Node.js server and send the request again, you should get the result from the Sepolia node:

<Tabs>
<TabItem value="Example CURL request" label="Example CURL request" default>
Expand All @@ -167,4 +167,4 @@ curl http://localhost:3000/v3/<YOUR-API-KEY> \
</TabItem>
</Tabs>

The reverse proxy ignores the localhost node, since it's not functioning, and falls back to the Infura Sepolia node.
The reverse proxy ignores the localhost node, since it's not functioning, and falls back to the Sepolia node.

0 comments on commit b3d786e

Please sign in to comment.