Cloudflare Pages

Deploying your EasyPageGO-generated website to Cloudflare Pages is a straightforward process. Follow the steps below to get your site live.

Prerequisites

Download the Website Folder

Before starting, ensure you have the folder containing your website files downloaded from EasyPageGO. This folder is ready to be deployed as-is to Cloudflare Pages.

Create the Pages Project

  1. Log in to Cloudflare: Go to the Cloudflare dashboard and log in to your account.
  2. Navigate to Pages: In the Cloudflare dashboard, select Pages from the menu on the left side.
  3. Create a New Project: Click the "Create a Project" button.

Deploying via Folder Upload

  1. Access Your Project: In the Cloudflare Pages dashboard, select your project.
  2. Deployments: Click on the "Deployments" tab.
  3. Drag and Drop: Use the drag-and-drop area or the upload button to upload the folder you downloaded from EasyPageGO.
  4. Start Deployment: Cloudflare Pages will automatically start the deployment process once the folder is uploaded.

Deploying with Wrangler CLI

The Wrangler CLI is a tool provided by Cloudflare for managing and deploying Cloudflare Pages projects from the command line.

Install and Setup Wrangler CLI

Install Wrangler: Open your terminal and install Wrangler using npm:

shellscript
npm install -g @cloudflare/wrangler

Authenticate: Run the following command to authenticate Wrangler with your Cloudflare account:

shellscript
wrangler login

Execute CLI Command to Deploy

Navigate to Your Project Folder: Open your terminal and change to the directory containing your EasyPageGO website files.

shellscript
cd ~/Downloads/build

Deploy Using Wrangler: Use the following command to deploy your project:

shellscript
wrangler pages publish ./ --project-name <cloudflare-pages-project-name>

Replace cloudflare-pages-project-name with the name of your Cloudflare Pages project.

Monitor Deployment: Wrangler will output deployment progress in the terminal. You can also check the deployment status and your live site in the Cloudflare Pages dashboard.