From 70a45144deb431cb5e4ae8deb948acc0b45a7e87 Mon Sep 17 00:00:00 2001 From: horsefacts <109845214+horsefacts@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:31:38 -0700 Subject: [PATCH] chore: add RPC URL env var (#192) ## 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 --- .changeset/thirty-geckos-study.md | 5 +++++ apps/relay/src/env.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/thirty-geckos-study.md diff --git a/.changeset/thirty-geckos-study.md b/.changeset/thirty-geckos-study.md new file mode 100644 index 0000000..fcebd43 --- /dev/null +++ b/.changeset/thirty-geckos-study.md @@ -0,0 +1,5 @@ +--- +"@farcaster/auth-relay": patch +--- + +chore: add RPC URL env var diff --git a/apps/relay/src/env.ts b/apps/relay/src/env.ts index 7210327..009e197 100644 --- a/apps/relay/src/env.ts +++ b/apps/relay/src/env.ts @@ -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"];