Overview
Vercel is a frontend cloud platform optimized for performance and developer experience. It offers lightning-fast deployments with automatic optimization and global edge network delivery.Prerequisites
- Your portfolio template folder ready to deploy
- An email address or GitHub account
- (Optional) Git repository for continuous deployment
Why Choose Vercel?
- Fastest global CDN: Content delivered from 100+ edge locations worldwide
- Automatic optimization: Image optimization, compression, and caching
- Instant deployments: Changes go live in seconds
- Built-in analytics: Performance monitoring included
- Zero configuration: Works out of the box for static sites
Method 1: Import from GitHub (Recommended)
Sign Up for Vercel
- Go to vercel.com
- Click Sign Up
- Choose Continue with GitHub (recommended) or email
- Authorize Vercel to access your GitHub account
- Complete the registration process
Push Portfolio to GitHub
- Create a new GitHub repository
- Upload your portfolio files
- Ensure
index.htmlis at the root level
Import Your Repository
- In your Vercel dashboard, click Add New
- Select Project
- Click Continue with GitHub
- Choose your portfolio repository from the list
- If you don’t see it, click Adjust GitHub App Permissions
- Click Import
Configure Project Settings
- Framework Preset: Select “Other” or leave as detected
- Root Directory: Leave as
.(current directory) - Build Command: Leave empty (no build needed)
- Output Directory: Leave empty or enter
. - Install Command: Leave empty
Deployment Complete
- Vercel builds and deploys your site (10-20 seconds)
- You’ll see a success screen with confetti animation
- Your portfolio is assigned a URL like:
- Click Visit to view your live portfolio
Method 2: Manual Upload via CLI
Install Vercel CLI
Navigate to Your Portfolio
Deploy with Vercel CLI
- Set up and deploy: Press Enter
- Which scope: Select your account
- Link to existing project?: No (for first deployment)
- What’s your project’s name?: Enter a name or press Enter
- In which directory is your code located?: Press Enter (current directory)
- Want to override settings?: No
Access Your Deployment
Method 3: Drag-and-Drop Upload
Prepare Your Portfolio
- Ensure all files are in a single folder
- Verify
index.htmlis at the root level - Compress the folder into a
.zipfile (optional, for easier upload)
Upload via Dashboard
- Log in to your Vercel dashboard
- Click Add New > Project
- Look for the Manual Upload option
- Drag your portfolio folder (or .zip file) to the upload area
- Vercel uploads and deploys automatically
Updating Your Portfolio
For Git-Based Deployments
Push Changes to GitHub
Automatic Deployment
- Detects the push to GitHub
- Triggers a new deployment
- Updates your live site in seconds
For CLI Deployments
Make Local Changes
Redeploy
Custom Domain Setup
Add Domain to Vercel
- In your project dashboard, click Settings
- Click Domains in the sidebar
- Enter your domain name (e.g.,
johndoe.comorwww.johndoe.com) - Click Add
Configure DNS Records
Verify DNS Configuration
- Vercel automatically checks DNS configuration
- Once records propagate (can take up to 48 hours), domain status shows Valid Configuration
- SSL certificate is automatically provisioned
- Your portfolio is accessible at your custom domain with HTTPS
Set Primary Domain (Optional)
- Go to Settings > Domains
- Click the three dots next to your preferred domain
- Select Set as Primary Domain
Environment Variables (If Needed)
If your portfolio uses environment variables:Add Environment Variables
- Go to project Settings > Environment Variables
- Click Add New
- Enter:
- Name: Variable name (e.g.,
API_KEY) - Value: Variable value
- Environment: Production, Preview, or Development
- Name: Variable name (e.g.,
- Click Save
Access in Code
Redeploy to Apply Changes
- Push to Git, or
- Click Deployments > Redeploy
Configuration Tips
vercel.json Configuration
Create avercel.json file in your project root for advanced configuration:
Custom 404 Page
Create a404.html file in your root directory:
Performance Optimization
Vercel automatically:- Compresses assets with Brotli/Gzip
- Serves from global edge network
- Caches static assets aggressively
- Optimizes images (if using Vercel Image Optimization)
Preview Deployments
Every Git push creates a unique preview deployment:- Branch deployments: Every branch gets its own URL
- Commit deployments: Every commit gets a unique preview
- Pull request comments: Vercel comments on PRs with preview links
Vercel Analytics (Optional)
Enable built-in analytics:Enable Analytics
- Go to project Analytics tab
- Click Enable Analytics
- Analytics starts tracking immediately (no code changes needed)
View Metrics
- Page views and visitors
- Real Experience Score (performance metrics)
- Top pages
- Geographic distribution
Troubleshooting
Build failed
Build failed
- Check deployment logs in Deployments tab
- Ensure
index.htmlexists at root level - Verify no build commands are configured (should be empty)
Assets not loading
Assets not loading
- Use relative paths:
./css/style.cssinstead of/css/style.css - Check file names match exactly (case-sensitive)
- Verify files are committed to Git (for Git deployments)
Custom domain not working
Custom domain not working
- Verify DNS records are correct (check Vercel’s instructions)
- Wait up to 48 hours for DNS propagation
- Use
digornslookupto verify DNS records - Check domain status in Settings > Domains
Deployment stuck
Deployment stuck
- Check Vercel status page: vercel-status.com
- Cancel and retry deployment
- Contact Vercel support if issue persists