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.Vercel’s free “Hobby” tier includes unlimited deployments, automatic SSL, and 100GB bandwidth/month.
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
If you haven’t already:
- 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
Vercel automatically detects that this is a static site and configures everything.
Configure Project Settings
For a static HTML portfolio:
- 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
Method 2: Manual Upload via CLI
Install Vercel CLI
Open your terminal and install the Vercel CLI:
You need Node.js and npm installed on your computer. Download from nodejs.org.
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
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
For CLI Deployments
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
Vercel shows exactly which DNS records to add:For apex domain (example.com):For www subdomain (www.example.com):Add these records at your DNS provider (Namecheap, Cloudflare, etc.).
Vercel provides exact instructions specific to your domain. Follow them carefully.
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
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
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)
No configuration needed. Vercel optimizes your static site automatically.
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)
Vercel Analytics is privacy-friendly and doesn’t use cookies or track personal data.
Troubleshooting
Build failed
Build failed
For static sites, builds rarely fail. If they do:
- 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
Best Practices
Vercel’s free tier is generous for personal projects. You get unlimited deployments, 100GB bandwidth/month, and automatic SSL.
Next Steps
Edge Functions
Add serverless functions that run at the edge for dynamic functionality.
Image Optimization
Use Vercel’s Image Optimization API to automatically optimize portfolio images.
Web Analytics
Enable Vercel Analytics to track performance and visitor metrics.
Speed Insights
Monitor real user performance metrics with Vercel Speed Insights.