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.
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.