solana-developers / solana-devnet-faucet

Public web faucet for Solana devnet/testnet airdrops
https://faucet.solana.com
10 stars 5 forks source link

add: IP_ALLOW_LIST plus minor fixes #10

Closed mikemaccana closed 9 months ago

mikemaccana commented 9 months ago

add: process.env.IP_ALLOW_LIST (as JSON array) refactor: move checkCloudflare() into separate function for readability fix: use constant for MAX_SOL_AMOUNT fix: tighten (my own) duplicate code refactor: just tweak some error messages refactor: use constants for airdrop limits refactor: avoid booleans that have 'not' in the name, so code doesn't have double negatives, eg, 'ipLimitReached' instead of !ipLimitNotReached'

vercel[bot] commented 9 months ago

You must have Developer access to commit code to Solana Foundation on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes.

Learn more: https://vercel.com/docs/concepts/teams/roles-and-permissions#enterprise-team-account-roles