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"];