helius-labs / helius-rpc-proxy

This repo hosts a one-click-deploy Cloudflare worker that proxies RPC requests to Helius.
MIT License
65 stars 253 forks source link

Add support for DEVNET=true environment variable #8

Open mcintyre94 opened 2 months ago

mcintyre94 commented 2 months ago

If the environment variable DEVNET is set to true, this will use the devnet RPC and API paths. I used a string comparison to true instead of existence of the variable, so that if someone sees it set to true and changes it to false then they'll get mainnet as they expect.