feat: add CoinGecko API key support with env-based attribution and docs updates

This commit is contained in:
2026-03-08 18:24:33 +01:00
parent 3c158963a5
commit 82b676d9c5
4 changed files with 78 additions and 6 deletions

View File

@@ -118,7 +118,22 @@ npm run sync:crypto-icons
## Environment Variables
No API keys are required.
CoinGecko key is optional but recommended to reduce rate-limit issues.
Preferred server-side variables:
```env
COINGECKO_PRO_API_KEY=
# or
COINGECKO_DEMO_API_KEY=
```
Fallback generic option:
```env
COINGECKO_API_KEY=
COINGECKO_API_KEY_TYPE=demo # demo | pro
```
Optional variable (only if you want to call API routes through a custom base URL):