This repository is now fully configured and optimized for deployment on Vercel.
- ✅ Framework preset: Vite
- ✅ Build command:
npm run build - ✅ Output directory:
dist - ✅ SPA routing configured (all routes redirect to index.html)
- ✅ Security headers added:
X-Content-Type-Options: nosniffX-Frame-Options: SAMEORIGINX-XSS-Protection: 1; mode=block
- ✅ Optimized caching for static assets (1 year cache for
/assets/*)
- ✅ Converted all
process.env.API_KEYreferences toimport.meta.env.VITE_* - ✅ Updated files:
components/MapView.tsx- Google Maps API keycomponents/geminiService.ts- Gemini AI API key (4 instances)
- ✅ Added TypeScript support via
vite-env.d.ts - ✅ Updated
tsconfig.jsonto include type definitions
- ✅ DEPLOYMENT.md - Comprehensive deployment guide including:
- Quick deploy via Vercel dashboard
- CLI deployment instructions
- Environment variables documentation
- Troubleshooting tips
- ✅ .env.example - Template for all required environment variables
- ✅ README.md updated with:
- Deployment section
- "Deploy with Vercel" button
- Link to deployment documentation
- ✅ TypeScript compilation: Successful
- ✅ Vite build: Successful (744.43 KB bundle size)
- ✅ Code review: Passed (all feedback addressed)
- ✅ Security scan (CodeQL): Passed (0 vulnerabilities)
- ✅ No hardcoded API keys or secrets found
The following environment variables must be configured in Vercel:
VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key
VITE_GEMINI_API_KEY=your_gemini_api_key
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_FIREBASE_MEASUREMENT_ID=your_measurement_id
- Visit vercel.com/new
- Import repository:
SmileAfterBurn/Social - Vercel will auto-detect Vite configuration
- Add environment variables (see above)
- Click "Deploy"
Click the deploy button in README.md:
npm install -g vercel
vercel login
vercel --prodAfter deploying to Vercel:
- Verify the application loads correctly
- Test the interactive map functionality
- Verify the AI assistant (пані Думка) works with voice
- Check that organization data displays properly
- Test search and filter functionality
- Configure custom domain (optional)
- Set up analytics in Vercel dashboard
- Monitor deployment logs for any issues
dist/index.html 2.70 kB │ gzip: 1.31 kB
dist/assets/index-DYbso6tA.js 744.43 kB │ gzip: 184.53 kB
- React 19
- TypeScript 5.4
- Vite 5.0
- Tailwind CSS 3.4
- Google Maps API
- Google Gemini AI
- Firebase 11
- Modern browsers with ES2022 support
- Chrome, Firefox, Safari, Edge (latest versions)
- ✅ No secrets committed to repository
- ✅ All API keys use environment variables
- ✅ Security headers configured in
vercel.json - ✅ Content Security Policy compatible
- ✅ XSS protection enabled
- ✅ Clickjacking protection (SAMEORIGIN)
For deployment issues or questions:
- 📧 Email: chernov.illia@icloud.com
- 🐛 GitHub Issues: SmileAfterBurn/Social/issues
- 📖 Documentation: DEPLOYMENT.md
✨ The repository is production-ready and fully optimized for Vercel deployment.
All configuration files are in place, environment variables are properly structured, security best practices are implemented, and the build process is verified and working correctly.
🇺🇦 Made with love for Ukraine 🇺🇦
© 2026 Ілля Чернов (SmileAfterBurn)