Deploy your website using Cloudflare Pages
This document describes how to deploy your documentation website using Cloudflare Pages.
Steps
Log in to Cloudflare Pages.
In the Workers & Pages page, click Create application.
In the Create an application page, select Pages and click Connect to Git.
Select your fork (
pingcap-docsite-preview
) and click Begin setup.In the Build settings page, fill in the following information:
Build command:
./build.sh
Build output directory:
website-docs/public
Environment variables:
YARN_VERSION=1
Click Save and Deploy.
After approximately 5 minutes, the website is deployed. You can get the preview URL from your Cloudflare Pages.
Note
Each time you create a new branch or commit new changes in your fork, Cloudflare Pages automatically deploys the branch to a preview environment. You can get preview URLs in the Deployments page of your Cloudflare Pages project.
For more information, see Cloudflare Pages documentation.