#!/bin/bash # TCG Vault - All-Vercel Deployment Script echo "🚀 Preparing TCG Vault for All-Vercel deployment..." echo "" # Check if we're in the frontend directory if [ ! -f "package.json" ] || [ ! -d "src" ]; then echo "❌ Please run this script from the frontend directory" exit 1 fi echo "📦 Installing dependencies..." npm install echo "🔨 Testing production build..." npm run build if [ $? -eq 0 ]; then echo "✅ Frontend build successful!" else echo "❌ Frontend build failed. Please fix errors and try again." exit 1 fi echo "" echo "🎯 Next Steps for All-Vercel Deployment:" echo "" echo "1. 🌟 DEPLOY TO VERCEL PRO:" echo " • Push this frontend folder to a GitHub repository" echo " • Go to https://vercel.com/dashboard" echo " • Import Project → Connect your GitHub repo" echo " • Vercel will auto-detect React + API functions" echo " • Deploy! 🚀" echo "" echo "2. ✅ WHAT'S INCLUDED:" echo " • Frontend React app with OCR scanner" echo " • Backend API functions (cards, health check)" echo " • Card database as JSON (embedded)" echo " • All visual effects and features" echo "" echo "💡 Benefits of All-Vercel:" echo " • 📍 Single codebase and deployment" echo " • ⚡ Edge functions worldwide" echo " • 🔒 Built-in security and CORS" echo " • 📊 Integrated monitoring" echo " • 💰 $0 additional cost (using existing Vercel Pro)" echo "" echo "✨ Your TCG Vault will be live on Vercel with enterprise performance!"