DEV Community

Joma
Joma

Posted on

Deploy your React personal website using Cloudflare Hosting solution and GitHub

Prerequisites:

  1. GitHub repo
  2. Cloudflare account
  3. wrangler.jsonc file added to the project

On the left side of your Cloudflare dashboard find these two tabs:

Cloudflare dashboard

Click on a blue button with the caption: Create application on the right side of the page. The button will navigate you to the separate dashboard where you'll be able to choose a worker:

Choose a worker

Select an option to connect with GitHub, follow their simple steps, wait for them to install your dependencies and build your project.

Possible errors

If there are any errors, the log will tell you what's happening and it is likely you forgot to add a wrangler.jsonc file with the following configuration:

{
    "name": "worker-name",
    "compatibility_date": "2026-02-08",
      "assets": {
        "directory": "./dist"
      }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)