PingCAP Docsite Preview Help

Deploy your website using Cloudflare Pages

This document describes how to deploy your documentation website using Cloudflare Pages.

Steps

  1. Log in to Cloudflare Pages.

  2. In the Workers & Pages page, click Create application.

  3. In the Create an application page, select Pages and click Connect to Git.

  4. Select your fork (pingcap-docsite-preview) and click Begin setup.

  5. 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

  6. Click Save and Deploy.

  7. 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.

      Last modified: 01 April 2025