Cloudflare Pages is a hosting platform used by millions of websites. It provides a global CDN, DDoS protection, and a generous free tier. This guide walks through connecting your GitHub repository to Cloudflare Pages and deploying your Retype site.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/retypeapp/retype/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A GitHub repository containing your Retype project source files
- The Retype Build Action configured to publish built output to a
retypebranch (see the GitHub Actions guide) - A Cloudflare account (free tier is sufficient)
Deployment
Add the Retype Build Action
Before connecting Cloudflare Pages, set up the Retype GitHub Build Action in your repository. The action builds your site and pushes the output to a
retype branch, which Cloudflare Pages will serve.Sign up for Cloudflare
Go to cloudflare.com and click Sign up in the top-right corner. Follow the registration prompts.After signing up, you will have access to your Cloudflare dashboard.
Create a new Pages project
- In the Cloudflare dashboard, scroll down to the Pages section in the left sidebar and click it.
- Click Create a project.
- Click Connect to Git.
- Authorize Cloudflare to access your GitHub account and select your repository.
Configure build settings
On the Set up builds and deployments screen, configure the following:
| Setting | Value |
|---|---|
| Project name | Your preferred name (this becomes the default pages.dev subdomain) |
| Production branch | retype |
| Build command | (leave blank — the branch already contains built output) |
| Build output directory | / |
Set environment variables (if using a Retype license key)
If your project requires a Retype license key:
- Expand the Environment variables (advanced) section on the build settings screen.
- Click Add variable.
- Set the variable name to
RETYPE_KEYand the value to your license key.
RETYPE_KEY environment variable during the build.Custom domain
To use a custom domain with your Cloudflare Pages site:Add a custom domain
In the Cloudflare Pages dashboard, open your project and go to the Custom domains tab. Click Set up a custom domain and enter your domain name.
Configure DNS
If your domain is already managed by Cloudflare, the DNS record is added automatically. If your domain is registered elsewhere, follow the prompts to add the required CNAME record at your DNS provider.
Other hosting options
GitHub Pages
Deploy to GitHub Pages for free using the Retype Build Action.
Netlify
Deploy to Netlify with automatic builds from your Git repository.
Docker
Run Retype in a Docker container for flexible self-hosted deployments.
