Deploying to Vercel
- Install the Vercel CLI and login:
npm i -g vercel
vercel login
- Add your CoinGecko API key to Vercel (optional but recommended):
vercel env add COINGECKO_API_KEY production
- Deploy:
vercel --prod
Notes:
- This project uses a serverless endpoint at
/api/priceswhich queries CoinGecko on demand. - Socket.io (server sockets) is not used because serverless functions are ephemeral; the client polls
/api/pricesevery 10s instead. - If you need persistent WebSockets or a single long-lived server process, deploy
server/index.jsto a VM-like host (Render, Fly, Railway) instead.