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 (example.com
) 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.
3 Likes
So, in case I want to preserve the initial project name (example
in example.pages.dev
) along with my custom domain (example.com
) on this project, I need to:
- Unlink the custom domain first
- Delete the existing project
- Create a new project by linking a Git repository
- 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