← Back to Docs

Deploy to Cloudflare Pages

Step-by-step guide to deploying Gorilla on Cloudflare Pages

Why Cloudflare Pages?

  • Lightning fast - Global provider with fast delivery
  • Direct upload - Drag and drop deployment
  • Custom domains - Easy HTTPS setup

Prerequisites

Cloudflare Pages Direct Upload

Cloudflare is a bit more full-featured as a development tool than Netlify. The below guide still strives to make deployment approachable with their direct upload feature.

The Gorilla App Deployment instructions will guide you to:

Step-by-Step Instructions

1

Login or Sign Up for Cloudflare

Go to dash.cloudflare.com/login to log in or create a free account.

You can sign up with email or use many common authentication providers for faster setup.

2

Navigate to Pages

Once logged in, click the + or "Create application", then select "Pages".

Choose Get Started in the Drag and drop your files card.

3

Create Your Project

Give your project a name (e.g., "family-gorilla" or "kids-youtube").

This will be part of your URL: your-project-name.pages.dev

4

Upload Your Site

Drag and drop your _site folder (or select it with "Select from computer").

Cloudflare will upload all your files - this usually takes 30-60 seconds depending on your connection.

Click "Deploy site" and wait for the deployment to complete.

5

Your Site is Live! 🎉

Once deployment completes, Cloudflare will give you a live URL like your-project-name.pages.dev.

Your site is now live on Cloudflare's global network!

Post-Deployment Configuration

Add Custom Domain (Optional)

Go to your project's Custom domains tab.

Click "Set up a custom domain" and follow the instructions to connect your own domain (e.g., videos.example.com). Cloudflare will automatically provision SSL/HTTPS.

Access Controls (Optional)

Cloudflare Pages Pro plan offers access controls if you want to password-protect your site or restrict access to specific IP addresses. The free tier doesn't include this.

Updating Your Site

To update your Gorilla site with new videos or channels:

  1. Use the Gorilla app to update your channels or settings
  2. Click "Deploy Your App" and select Cloudflare Pages again
  3. Go to your project in Cloudflare Dashboard
  4. Click "Create deployment"
  5. Upload the new _site folder
  6. Your site updates in about 30-60 seconds

💡 Pro Tip

Cloudflare keeps a history of all your deployments. You can easily roll back to a previous version if needed by going to the Deployments tab and clicking "Rollback to this deployment" on any previous version.

Performance Benefits

Cloudflare Pages automatically provides:

  • Global CDN: Your site is cached on 300+ data centers worldwide
  • Automatic compression: Brotli and Gzip compression enabled by default
  • HTTP/3 & QUIC: Latest protocols for faster loading
  • Always-on SSL: Free HTTPS certificate with automatic renewal
  • DDoS protection: Built-in protection against attacks

Monitoring Usage

Keep an eye on your usage to stay within free tier limits:

Free Tier Limits

  • Bandwidth: Unlimited (yes, really!)
  • Builds: 500 deployments per month
  • Sites: Unlimited projects
  • Requests: Unlimited

View your usage in your Cloudflare Dashboard under Analytics.

🎉 Your Gorilla Instance is Live!

Share your Cloudflare Pages URL with your children and enjoy your custom YouTube content!