Skip to content

Why Vercel?

  • ⚡ Blazing fast - optimized for performance
  • ✓ Instant Git integration - automatic deploys from GitHub
  • ✓ Excellent CDN - global edge network
  • ✓ Preview deployments - test changes before going live
  • ✓ Great free tier - 100GB bandwidth/month

Prerequisites

  • GitHub account with your Gorilla repository
  • YouTube API key (see YouTube API guide)
  • Customized channels and settings in your repo

Step-by-Step Instructions

1

Sign Up for Vercel

Go to vercel.com and click "Sign Up".

Choose "Continue with GitHub" to connect your account.

2

Import Your Repository

From the Vercel dashboard, click "Add New..." → "Project".

Select "Import Git Repository" and find your Gorilla repo from the list.

3

Configure Project Settings

Vercel will auto-detect your framework. Update these settings:

Framework Preset: Other

Build Command: npm run build

Output Directory: _site

Install Command: npm install

4

Add Environment Variables

Click "Environment Variables" to expand the section.

Add your YouTube API key:

Name: YOUTUBE_API_KEY

Value: Your YouTube API key

5

Deploy!

Click "Deploy" to start your first build.

Vercel will build and deploy your site in 1-3 minutes. You'll get a URL like gorilla-xyz.vercel.app.

Post-Deployment Features

Custom Domain

Go to Project Settings → Domains to add your custom domain. Vercel handles SSL certificates automatically.

Preview Deployments

Every push to a non-production branch gets a unique preview URL. Test changes before merging to main.

Analytics (Optional)

Enable Vercel Analytics in project settings to see real-time visitor data (optional paid feature, but offers free tier).

Automatic Updates

Vercel automatically deploys when you push to GitHub. To fetch new videos regularly:

  1. Set up a GitHub Action to rebuild daily (see GitHub Pages guide for workflow example)
  2. Or use Vercel's Deploy Hooks: Go to Settings → Git → Deploy Hooks
  3. Create a hook and trigger it with a cron service like cron-job.org

Troubleshooting

Build Errors

Check the build log in the deployment details. Ensure all environment variables are set correctly.

404 Errors

Verify your output directory is set to _site in project settings.

🚀 Deployed Successfully!

Your Gorilla instance is now live on Vercel's global edge network!