Posting domain to public
Help so i bought a domain from cloudflare for $10 and im using the free plan to run it. I have no idea how to get the github repositories website from cloudflare (multiplayer chat) on my website domain as each time i do it, it only gets posted to a preview link. Looking at the documentation, it makes no sense so i have absolutely no idea what to do HELP!!
22 Replies
Support AI
I'd be happy to help you with deploying your GitHub repository to your custom domain on Cloudflare Pages.
According to the documentation, it seems like you're running into issues with preview deployments. By default, Cloudflare Pages creates a unique preview URL for each deployment, which is not what you want.
To deploy your GitHub repository to your custom domain, you need to set up a production branch and configure the build settings. Here's a step-by-step guide to help you:
1. Go to your Cloudflare Pages project and select the Settings tab.
2. Click on Builds and then Branch control.
3. Set the Production branch to the branch that contains your GitHub repository (e.g.,
main
).
4. Make sure the Build command is set to the correct command for your repository (e.g., npx @11ty/eleventy
for an Eleventy site).
5. Set the Build directory to the correct directory for your repository (e.g., _site
for an Eleventy site).
6. Click Save to save your changes.
Once you've set up your production branch and build settings, you should be able to deploy your GitHub repository to your custom domain. To do this:
1. Go to your Cloudflare Pages project and select the Deploy tab.
2. Click on Deploy to production.
3. Select the production branch you set up earlier (e.g., main
).
4. Click Deploy to start the deployment process.
After the deployment is complete, your GitHub repository should be live on your custom domain. If you're still having issues, you can try checking the Deployment history tab to see if there are any errors or issues with the deployment.
Additionally, you can refer to the Cloudflare Pages documentation on custom domains and branch build controls for more information.
If you're still having trouble, feel free to provide more details about your setup, and I'll do my best to help you troubleshoot the issue.
Source:
* Cloudflare Pages documentation on custom domains
* Cloudflare Pages documentation on branch build controlsSources
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
If you want help, provide real information. You're asking a community of developers and engineers who need facts.
What domain, what errors, what documentation.. what have you done to try and fix this.
Otherwise, π Good luck!
Srry im new at this. So the domain i dont rlly wanna say what it is for now but i did buy it and cloudflare says i own it. The error is that i want to use cloudflares on template from github repositories to post straight to the website, but instead of it being posted straight to the domain i bought, they only post it to a preview link "example.pages.dev"
Ok, no worries. Good luck.
Do yk how to post cloudflares templates from github straight to my web domain instead of their own preview links?
No, I don't. I'm not sure what "cloudflare templates" you're talking about. Sorry. But maybe someone else does.
Alr thanks anyways
No worries.
So, π I will answer if/when I can.. I'm working. But, I'm not trying to be difficult. I want to help. But you've given me nothing to use to help.
So, you said "looking at the documentation it makes no sense". And you say you want to use a template from github. Can you give me a link? This might help me understand what you're trying to do.
Do you have a screenshot of this "preview link example.pages.dev" that you're seeing? I'm just not sure where you're at and where you're trying to go.
Do you have a screenshot of this "preview link example.pages.dev" that you're seeing? I'm just not sure where you're at and where you're trying to go.

The "template" is basically a multiplayer chat, that cloudflare made and i got it from github in their project name "durable-chat-template"
Ok, so it looks like you've deployed it. Now you don't know how to get your domain to point to that deployment?
Yupp thats correct
I cant seem to find an example of the "preview link" to show u sorr
Oh wait found a preview link heres an example of what i want my domain that i bought to look like
Ok, so click into one of those projects, the one you're wanting to point your domain to. In the project at the top you'll see Metrics, Deployments, Bindings.
Go to Settings. And you'll see the spot to setup your domain
Go to Settings. And you'll see the spot to setup your domain
When i try to add my domain i get this error

Do you have it binded/used in any of your other projects you have deployed? If it's new, you could delete whatever records are there to make this work. Not sure.
Wait i acc think i made a CNAME or smthing cause chatgpt told me to try do it ill go deleye them brb
Yea, it would be an easy thing to do, if it's this new.
No idea where to go to delete themπ i gotta go now tho i have to go to work
Well, the documentation is out there, you can self service. I have faith you can figure out how to do this.
Have a good day at work! Cheers
Thankss!!!!