Commit graph

10 commits

Author SHA1 Message Date
varutasu
0a47362103
feat(catalog): weekly Vercel Cron sync for MTG and Pokémon sets (#48)
Extract shared import logic into lib/card-import, discover missing sets via
Scryfall/Pokémon TCG APIs, and expose GET /api/cron/sync-catalog protected
by CRON_SECRET (max 3 sets/run, paced imports).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 14:59:59 -05:00
Randall Stillwell
2d4c4963b8 Simplify Vercel config to resolve API routing issues 2025-07-23 09:22:14 -05:00
Randall Stillwell
a528676f37 Add require() postgres test and update Vercel config 2025-07-23 08:53:08 -05:00
Randall Stillwell
26dd9bea50 Add explicit Next.js framework configuration to vercel.json 2025-07-23 08:30:44 -05:00
Randall Stillwell
3c9388a56e Update Vercel config for Next.js app 2025-07-23 08:29:39 -05:00
Randall Stillwell
b7c6e674a6 Simplify Vercel configuration and add basic test endpoint
🔧 Configuration Changes:
- Remove specific runtime version from vercel.json
- Remove buildCommand that might be causing conflicts
- Let Vercel use default Node.js runtime settings

🧪 Simple Test Endpoint:
- Add /api/simple with minimal dependencies
- Use traditional Vercel function signature (req, res)
- No imports or complex operations to isolate the issue

This should help identify if the problem is with our function configuration, imports, or Vercel setup.
2025-07-22 06:42:19 -05:00
Randall Stillwell
2f4336889d Fix Vercel API routing configuration
🔧 Routing Fix:
- Remove redundant API rewrite rule that was causing conflicts
- Use negative lookahead regex to exclude API routes from frontend rewrites
- Only rewrite non-API, non-static routes to index.html
- This should resolve API endpoints returning HTML instead of JSON

🚀 Expected Result:
- /api/* routes will now properly reach Vercel functions
- Frontend routes will still work correctly
- Static assets remain unaffected
2025-07-21 21:40:19 -05:00
Randall Stillwell
9243f6ff4e Fix Vercel ES module import issues
- Change JSON import to use require() to avoid module loading issues
- Add api/tsconfig.json with CommonJS module configuration
- Update Vercel Node.js runtime to @vercel/node@3.2.0
- Add buildCommand to vercel.json for proper compilation
- Fix 'Cannot use import statement outside a module' error
2025-07-21 16:12:24 -05:00
Randall Stillwell
64247f79af Fix Vercel functions runtime version 2025-07-21 14:13:17 -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