Skip to content

Commit

Permalink
chore: add RPC URL env var (#192)
Browse files Browse the repository at this point in the history
## Change Summary

Add `OP_MAINNET_RPC_URL` env var.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a changeset
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes documentation if necessary
- [x] All commits have been signed
  • Loading branch information
horsefacts committed Aug 15, 2024
1 parent 86b9099 commit 70a4514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-geckos-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/auth-relay": patch
---

chore: add RPC URL env var
3 changes: 2 additions & 1 deletion apps/relay/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const URL_BASE =
export const HUB_URL = process.env["HUB_URL"] || "https://nemes.farcaster.xyz:2281";
export const HUB_FALLBACK_URL = process.env["HUB_FALLBACK_URL"] || "https://hoyt.farcaster.xyz:2281";

export const OPTIMISM_RPC_URL = process.env["OPTIMISM_RPC_URL"] || "https://mainnet.optimism.io";
export const OPTIMISM_RPC_URL =
process.env["OPTIMISM_RPC_URL"] || process.env["OP_MAINNET_RPC_URL"] || "https://mainnet.optimism.io";

export const AUTH_KEY = process.env["AUTH_KEY"];

0 comments on commit 70a4514

Please sign in to comment.