Skip to content

fix(indexer): require SOROBAN_RPC_URL without silent testnet fallback - #322

Open
jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:fix/require-soroban-rpc-url-302
Open

jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:fix/require-soroban-rpc-url-302

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Summary

  • Drops the silent "https://soroban-testnet.stellar.org" fallback on requireEnv("SOROBAN_RPC_URL") in indexer/src/index.ts so starting the indexer without SOROBAN_RPC_URL set (or with a blank string) exits immediately with [indexer] fatal: environment variable SOROBAN_RPC_URL is required but not set as documented in indexer/.env.example.
  • Updates indexer/README.md Quick Start and Configuration table to mark SOROBAN_RPC_URL as required (docker-compose.yml already sets it).
  • Exports requireEnv and adds unit tests in indexer/src/index.test.ts covering set, unset, and whitespace-only values.

Verification

  • Ran npx tsc --noEmit, npm run lint, npm test, and npm run build in indexer/.

Closes #302

@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@jeff-graham-ai is attempting to deploy a commit to the thewealthyplace100-8633's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make SOROBAN_RPC_URL required as documented

2 participants