Overview
This guide covers deploying your ItzHypeR Portfolio to various hosting platforms. We’ll focus on free, production-ready options that work excellently with Vite-based React applications.Platform Comparison
| Platform | Best For | Build Time | Custom Domain | Free Tier |
|---|---|---|---|---|
| Vercel | Vite/React projects | Fast | Yes | Generous |
| Netlify | Static sites | Fast | Yes | Generous |
| GitHub Pages | Open source projects | Moderate | Yes | Free |
| Cloudflare Pages | Global performance | Fast | Yes | Generous |
Deploy to Vercel (Recommended)
Vercel is the recommended platform for Vite applications, offering excellent performance and zero-configuration deployments.Create Vercel Account
- Go to vercel.com
- Sign up with GitHub, GitLab, or Bitbucket
- Authorize Vercel to access your repositories
Import Your Project
Click “Add New Project” and select your portfolio repository:
- Vercel automatically detects it’s a Vite project
- Build command:
npm run build - Output directory:
dist - Install command:
npm install
Configure Environment Variables
If you’re using EmailJS or other services, add environment variables:
Environment variables are found in Project Settings > Environment Variables
Deploy
Click “Deploy” and wait for the build to complete.Vercel will:
- Install dependencies
- Run the build command
- Deploy to a production URL
- Generate a preview URL for each commit
Vercel CLI Deployment
Alternatively, deploy using the Vercel CLI:Deploy to Netlify
Netlify is another excellent option with a simple deployment process.Create Netlify Account
- Go to netlify.com
- Sign up with GitHub, GitLab, or Bitbucket
- Authorize Netlify to access your repositories
Add New Site
Click “Add new site” > “Import an existing project”:Select your portfolio repository from your Git provider.
Configure Build Settings
Enter the following build settings:
Netlify automatically detects these settings for Vite projects
Netlify CLI Deployment
Deploy using the Netlify CLI:Netlify Configuration File
Create anetlify.toml file in your project root:
netlify.toml
Deploy to GitHub Pages
GitHub Pages is ideal for open-source projects and personal portfolios.
Your site will be available at
https://yourusername.github.io/your-repo-name/
Deploy to Cloudflare Pages
Create Cloudflare Account
- Go to cloudflare.com
- Sign up and verify your email
- Navigate to “Pages” in the dashboard
Connect Git Repository
Click “Create a project” > “Connect to Git”:Authorize Cloudflare and select your repository.
Custom Domain Setup
For Vercel
For Netlify
DNS propagation can take 24-48 hours. Use dnschecker.org to verify.
CI/CD Setup
Automatic Deployments
Both Vercel and Netlify automatically deploy when you push to your repository:- Production: Pushes to
main/masterbranch - Preview: Pull requests get unique preview URLs
- Rollback: Easy rollback to previous deployments
GitHub Actions Workflow
For more control, create a GitHub Actions workflow:.github/workflows/deploy.yml
Environment Variables in Hosting Platforms
Vercel
- Project Settings > Environment Variables
- Add variables for Production, Preview, and Development
- Variables are encrypted and injected at build time
Netlify
- Site settings > Environment variables
- Add key-value pairs
- Optional: Scope to specific branches
GitHub Actions
- Repository Settings > Secrets and variables > Actions
- Add secrets (encrypted) or variables (plain text)
- Reference with
${{ secrets.SECRET_NAME }}
Post-Deployment Checklist
- Site loads correctly at production URL
- All routes work (no 404 errors)
- Images and assets load properly
- Contact form sends emails (if applicable)
- HTTPS is enabled
- Custom domain is configured (if applicable)
- SEO meta tags are present
- Performance is good (use Lighthouse)
- Mobile responsiveness works
- Analytics are tracking (if configured)
Monitoring & Analytics
Vercel Analytics
Enable Vercel Analytics for performance insights:Google Analytics
Add Google Analytics to track visitors:index.html
Troubleshooting
404 Errors on Refresh
Add redirect rules for client-side routing: Vercel - Createvercel.json:
_redirects in public folder:
Build Fails
- Check build logs for specific errors
- Verify Node.js version matches local environment
- Ensure all dependencies are in
package.json - Check environment variables are set correctly
Slow Performance
- Enable CDN caching
- Optimize images (WebP, lazy loading)
- Implement code splitting
- Use performance monitoring tools
Next Steps
Your portfolio is now live! Consider:- Setting up custom domains
- Implementing CI/CD workflows
- Monitoring with analytics
- Optimizing for SEO and performance