# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod- Push code to GitHub repository
- Connect repository to Vercel dashboard
- Deploy automatically
Set these in Vercel dashboard:
VITE_API_URL=https://csms-api.vercel.app/api/v1
REACT_APP_CRICKET_API_KEY=74f14599-16d3-49d8-b32b-be5008bf741a
REACT_APP_CRICKET_API_HOST=cricket-live-data.p.rapidapi.com
- Build Command:
npm run build - Output Directory:
dist - Install Command:
npm install - Framework: Vite
npm run dev- Development servernpm run build- Production buildnpm run start:stg- Staging servernpm run preview- Preview production build