// Automates GitHub repository creation and Vercel deployment for Next.js websites. Use when deploying new websites, pushing to production, setting up CI/CD pipelines, or when the user mentions deployment, GitHub, Vercel, or going live.
| name | Deploying to Production |
| description | Automates GitHub repository creation and Vercel deployment for Next.js websites. Use when deploying new websites, pushing to production, setting up CI/CD pipelines, or when the user mentions deployment, GitHub, Vercel, or going live. |
Automated deployment workflow for Next.js websites using GitHub and Vercel.
Copy this checklist and track your progress:
Deployment Progress:
- [ ] Step 1: Pre-deployment validation (build + E-E-A-T check)
- [ ] Step 2: Create GitHub repository
- [ ] Step 3: Push code to GitHub
- [ ] Step 4: Deploy to Vercel
- [ ] Step 5: Post-deployment verification
Run build and verify no errors:
cd "$PROJECT_DIR"
npm run build
CRITICAL: Only proceed if build succeeds with no errors.
Pre-deployment checklist - See CHECKLIST.md for complete list:
npm run build completes successfullyRun the script to create a private GitHub repository:
bash scripts/create-github-repo.sh <project-name>
What this script does:
If the script fails, see TROUBLESHOOTING.md.
Check the repository URL:
gh repo view --web
Verify all files are pushed correctly.
Run the deployment script:
bash scripts/deploy-to-vercel.sh <project-name>
What this script does:
If deployment fails, see TROUBLESHOOTING.md.
Verify deployment:
If issues found:
vercel logsOnly mark deployment complete when all verifications pass.
All deployment scripts are in the scripts/ directory:
create-github-repo.sh - GitHub repository creationdeploy-to-vercel.sh - Vercel deploymentPrerequisites:
gh) installed and authenticated/Volumes/Time/go to wild/websites/ directoryProject naming convention:
keyword-site-lang (e.g., pdf-converter-jp)Environment variables:
Set up monitoring:
Configure custom domain (if needed):
Enable automatic deployments:
main branch auto-deploys to productionFor detailed troubleshooting, see TROUBLESHOOTING.md.