Commit graph

9 commits

Author SHA1 Message Date
Randall Stillwell
bdaa257c88 Fix Vercel Node.js compatibility issues
- Downgrade Node.js version from 22.x to 20.x (Vercel supported)
- Downgrade @neondatabase/serverless from 1.0.1 to 0.10.4 for Node.js 20 compatibility
- Resolve 'Invalid Node.js Version' deployment error
- Build tested locally and working successfully
2025-07-21 16:00:17 -05:00
Randall Stillwell
33345a9f51 Fix Vercel deployment issues
- Update Node.js version from 18.x to 22.x for Neon compatibility
- Fix TypeScript errors by properly typing error objects as Error
- Resolve engine compatibility issues with @neondatabase/serverless and react-router
- Add proper error type casting in all API endpoints
- Fix FUNCTION_INVOCATION_FAILED crashes
2025-07-21 15:56:26 -05:00
Randall Stillwell
4821d1a389 Switch from JSON to Neon database for card data
- Add /api/migrate endpoint to populate Neon database with existing JSON data
- Update /api/v1/cards/ to query Neon database instead of JSON file
- Update /api/v1/cards/[id] to fetch single cards from Neon
- Add proper error handling and development debugging
- Maintain backward compatibility with existing API interface
- Ready to migrate card data to PostgreSQL
2025-07-21 15:46:58 -05:00
Randall Stillwell
4fea3d287e Add Neon database integration and migration scripts
- Install @neondatabase/serverless, @vercel/blob, @stackframe/stack
- Add database schema setup script (scripts/setup-database.sql)
- Add JSON to Neon migration script (scripts/migrate-json-to-neon.ts)
- Prepare for user collections, decks, and authentication
- Ready for Neon database population with existing card data
2025-07-21 15:06:43 -05:00
Randall Stillwell
df4cd86d90 Add Vercel Analytics and Speed Insights for comprehensive tracking
- Install @vercel/analytics and @vercel/speed-insights packages
- Integrate Analytics component for user behavior tracking
- Add SpeedInsights component for Core Web Vitals monitoring
- Track page views, user interactions, and performance metrics
2025-07-21 14:34:34 -05:00
Randall Stillwell
baeddb575b Specify Node.js 18.x for Vercel compatibility 2025-07-21 14:15:36 -05:00
Randall Stillwell
64247f79af Fix Vercel functions runtime version 2025-07-21 14:13:17 -05:00
Randall Stillwell
54fb73773a 🚀 Consolidate repositories - Complete TCG Vault with backend, docs, and Vercel setup 2025-07-21 14:04:48 -05:00
Randall Stillwell
6b81ed38b0 🚀 TCG Vault - Complete All-Vercel Setup
 Features:
- Camera OCR card scanning with Tesseract.js
- Beautiful glowing card effects and animations
- Intelligent card matching and recognition
- Mobile-responsive design with Tailwind CSS

🏗️ Architecture:
- Frontend: React TypeScript application
- Backend: Vercel Functions (replacing FastAPI)
- Database: JSON file with exported card data
- Deployment: Single Vercel project

📁 Structure:
- api/ - Vercel Functions backend endpoints
- src/ - React frontend components and logic
- src/data/cards.json - Card database (12 cards)
- vercel.json - Optimized Vercel configuration

💰 Cost: /bin/zsh additional (uses existing Vercel Pro)
🚀 Ready for immediate Vercel deployment
2025-07-21 13:53:06 -05:00