π Introduction
π« This guide is not for you if...
- Your code is hosted in a private repository. Vercel's free tier requires public repos for direct integration β private repos need a paid plan. (Psst, if you're looking for a solution on how to deploy with a private repo, here's a very comprehensive guide using Vercel CLI!)
- You're not a fan of cats! π± (just kidding, but that's concerning)
β‘ TL;DR
- Prepare your app: Use an existing Next.js project or start with the portfolio template.
- Sign up: Create a free Vercel Hobby account.
- Deploy: Link your Git repository to Vercel and deploy automatically, it's THAT simple!
- (Optional) Customize: Add a custom domain by updating DNS records as guided in Vercel's UI.
π Prerequisites
- A Next.js app (or similar framework) that builds locally without errors.
- Quickstart with my portfolio template if you need one.
- A Git account (GitHub, GitLab, or Bitbucket) with a public repository containing your app's code.
- Basic Git knowledge required (e.g., git push).
π Step 1: Sign Up for Vercel
- Head to vercel.com and click "Sign Up".
- Choose your plan. Hobby is free and perfect for public repos β deploy by pushing code!

Vercel Plans - Sign up with your email, GitHub, GitLab, or Bitbucket account (Git account makes connecting easier). Verify your email if prompted.

Vercel Account Creation
π Step 2: Connect Your Git Account
- After signing up, click "Import Git Repository".
- Select your repository provider (GitHub, GitLab, or Bitbucket).

Select Your Git Provider - Grant Vercel the required permissions to access your repository.
- Install Vercel in your repository if prompted (third-party app installation is required for full functionality).
π¦ Step 3: Import Your Project
- Select the repository you want to import.
- Click "Import" to bring it into Vercel.

Select Your Git Repository
βοΈ Step 4: Configure Your Deployment (Optional)
- On the project setup page, review the default settings:
- Framework Preset: Auto-detected (e.g., Next.js).
- Root Directory: Default unless your app is in a subfolder.
- Build Command: Default works for most apps.
- Output Directory: Default for static sites or frameworks.
- Add environment variables if your app needs them (e.g., API keys) via "Environment Variables".
- Click "Deploy" to start.

Project setup page
π Step 5: Deploy and Monitor
- Vercel will build and deploy your app (takes a few minutes).
- Once done, you'll get a live URL (e.g., your-app.vercel.app).
- Check the "Deployments" tab for status.
- If errors occur, click the deployment to view logs and fix issues.

Deployed app
π‘ Tips and Troubleshooting
- Automatic Deployments: Every push to your main branch redeploys your app.
- Custom Domains: Add a custom domain in your project settings.
- Common Issues:
- Build fails? Check your code and package.json.
- Static sites? Ensure build output is in the correct folder.
- Free Tier: Vercel offers a generous free plan for personal projects.