# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
# Set environment variables in Vercel dashboard
# Add: GEMINI_API_KEY, OPENAI_API_KEY, HUGGING_FACE_API_KEY# Install Netlify CLI
npm i -g netlify-cli
# Build and deploy
npm run build
netlify deploy --prod --dir=.next# Build Docker image
docker build -t kisansafe .
# Run container
docker run -p 3000:3000 --env-file .env.local kisansafe- Copy
.env.exampleto.env.local - Get API keys:
- Gemini: https://makersuite.google.com/app/apikey (Free)
- OpenAI: https://platform.openai.com/api-keys ($5 credit)
- Hugging Face: https://huggingface.co/settings/tokens (Free)
- ✅ Static generation for better SEO
- ✅ Image optimization enabled
- ✅ Code splitting implemented
- ✅ API route caching
- ✅ Gzip compression
- ✅ Environment variables secured
- ✅ Input sanitization
- ✅ XSS protection
- ✅ API rate limiting ready