Linking Git repo to existing CF Pages Project

Hello everyone,

I am unable to find the option to link a Git repository to my existing Cloudflare Pages project. I just created a new project by uploading the folder, and now I can’t see any option to change the method for future deploys. I only see the “Upload” option and no way to change it in the Settings tab or elsewhere.

I have already set up my custom apex domain ( as a link to that project.

What should I do?

All you can do is create a new Pages Project using the Git Repo, and then readd the Custom Domain to that one. You can’t convert an existing Direct Upload Pages Project to Git, although you can Direct Upload to a Git Pages Project using the CLI.


So, in case I want to preserve the initial project name (example in along with my custom domain ( on this project, I need to:

  1. Unlink the custom domain first
  2. Delete the existing project
  3. Create a new project by linking a Git repository
  4. Set up the custom domain again

Is that correct?

Yes, I have done this a couple of times. I hope your website isn’t live yet.

1 Like