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
SuperHelpflare
SuperHelpflareβ€’4mo ago
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 controls
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.
[token]
[token]β€’4mo ago
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!
at
atOPβ€’4mo ago
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"
[token]
[token]β€’4mo ago
Ok, no worries. Good luck.
at
atOPβ€’4mo ago
Do yk how to post cloudflares templates from github straight to my web domain instead of their own preview links?
[token]
[token]β€’4mo ago
No, I don't. I'm not sure what "cloudflare templates" you're talking about. Sorry. But maybe someone else does.
at
atOPβ€’4mo ago
Alr thanks anyways
[token]
[token]β€’4mo ago
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.
at
atOPβ€’4mo ago
No description
at
atOPβ€’4mo ago
The "template" is basically a multiplayer chat, that cloudflare made and i got it from github in their project name "durable-chat-template"
[token]
[token]β€’4mo ago
Ok, so it looks like you've deployed it. Now you don't know how to get your domain to point to that deployment?
at
atOPβ€’4mo ago
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
[token]
[token]β€’4mo ago
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
at
atOPβ€’4mo ago
When i try to add my domain i get this error
at
atOPβ€’4mo ago
No description
[token]
[token]β€’4mo ago
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.
at
atOPβ€’4mo ago
Wait i acc think i made a CNAME or smthing cause chatgpt told me to try do it ill go deleye them brb
[token]
[token]β€’4mo ago
Yea, it would be an easy thing to do, if it's this new.
at
atOPβ€’4mo ago
No idea where to go to delete them😭 i gotta go now tho i have to go to work
[token]
[token]β€’4mo ago
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
at
atOPβ€’4mo ago
Thankss!!!!

Did you find this page helpful?