2.9 KiB
🚀 Deployment Checklist
Pre-Deployment
- All files copied to
vercel-deployfolder vercel.jsonconfiguration readypackage.jsonwith correct dependencies- Test locally before deploying
Test Locally
cd vercel-deploy
npm install
npm start
Visit http://localhost:3000 and test:
/healthendpoint works/search?q=narutoreturns results/player.htmlloads correctly
Deploy to Vercel
Step 1: Install Vercel CLI
npm i -g vercel
Step 2: Login to Vercel
vercel login
Step 3: Deploy
cd vercel-deploy
vercel
Answer the prompts:
- Set up and deploy? → Y
- Which scope? → (select your account)
- Link to existing project? → N
- Project name? → (press Enter or type a name)
- Directory? → (press Enter)
- Override settings? → N
Step 4: Test Deployment
After deployment, you'll get a URL. Test it:
# Replace with your actual URL
curl https://your-project.vercel.app/health
Expected response:
{"status":"ok","message":"Animepahe API is alive!"}
Post-Deployment Testing
Test all endpoints with your deployed URL:
# Set your URL
URL="https://your-project.vercel.app"
# Health check
curl "$URL/health"
# Search
curl "$URL/search?q=naruto"
# Visit player
# Open in browser: $URL/player.html
Production Deploy
For production deployment:
vercel --prod
This will deploy to your production domain.
Troubleshooting
Issue: "Command not found: vercel"
Solution: Install Vercel CLI globally
npm i -g vercel
Issue: "No package.json found"
Solution: Make sure you're in the vercel-deploy folder
cd vercel-deploy
Issue: Deployment timeout
Solution: Vercel free tier has 10-second timeout. This is sufficient for all API calls. If you see timeouts, check:
- AnimePahe website is accessible
- Your internet connection is stable
Issue: 404 on routes
Solution: Check vercel.json is present and correctly configured
Environment Variables
No environment variables needed! The app works without any configuration.
Custom Domain
To add a custom domain:
- Go to your project on vercel.com
- Click "Settings" → "Domains"
- Add your domain
- Update DNS records as instructed
Monitoring
View logs and analytics:
- Go to vercel.com
- Select your project
- Click "Deployments" to see logs
- Click "Analytics" to see usage
Updates
To update your deployment:
cd vercel-deploy
vercel
Vercel will automatically detect changes and redeploy.
Rollback
To rollback to a previous deployment:
- Go to vercel.com
- Select your project
- Click "Deployments"
- Find the working deployment
- Click "..." → "Promote to Production"
Ready to deploy? Just run vercel in the vercel-deploy folder! 🚀