From 878e4898a562e2a9a48029b492c490a6853304f7 Mon Sep 17 00:00:00 2001 From: 0X-SquidSol Date: Thu, 9 Apr 2026 12:34:00 -0400 Subject: [PATCH] fix: rename SOLANA_RPC_URL to RPC_URL in .env.example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .env.example documented SOLANA_RPC_URL but @percolator/shared reads RPC_URL (validated in validation.ts, used in config.ts and networkValidation.ts). Operators copying the example file would set the wrong env var — silently falling back to devnet in development or crashing in production with a confusing error. Also adds a comment noting the public mainnet RPC rate-limits aggressively and is unsuitable for production. Co-Authored-By: Claude Opus 4.6 (1M context) --- .env.example | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 3567be1..c6c8a04 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,10 @@ WS_AUTH_REQUIRED=false WS_AUTH_SECRET= # Solana -SOLANA_RPC_URL=https://api.mainnet-beta.solana.com +# The shared library reads RPC_URL (not SOLANA_RPC_URL). +# For mainnet: use a paid RPC provider (Helius, Alchemy, etc.) — the public +# endpoint rate-limits aggressively and is unsuitable for production. +RPC_URL=https://api.mainnet-beta.solana.com # Supabase SUPABASE_URL=