retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.01k stars 201 forks source link

Question regarding Cloudflare #649

Closed AMufInABox closed 5 months ago

AMufInABox commented 8 months ago

Hey! I was trying to use Cloudflare to put my docs using retype, But whenever I do so its not using my custom domain? It always goes to a page like for instance "https://retype.mr-poll-docs.pages.dev/* when I would want it to go to "https://test.mrpoll.dev/". Any way I could fix this?

geoffreymcgill commented 8 months ago

Hi @AMufInABox. My guess this is a Cloudflare Pages configuration issue and not something directly related to Retype. Best I can tell, you have the Retype project configured correctly and the project url setting is set to https://mrpoll.dev/docs/.

In the Settings for the Pages instance, you should see the option to setup a custom domain. Just double check that is all setup correctly from within Cloudflare.

Screen Shot 2023-10-22 at 8 27 26 PM

Hope this helps.

AMufInABox commented 8 months ago

Yeah I had the custom domain set to image this ^

And on retype this was the url image

But even with that it just gives me this as well with a 404 so I'm unsure if I did anything wrong as the deployment works if I go to this url: https://retype.mr-poll-docs.pages.dev/ but it doesnt work for my actual domain itself. image

AMufInABox commented 8 months ago

DNS Record: image

geoffreymcgill commented 8 months ago

Try setting url: mrpoll.dev instead of url: mrpoll.dev/docs in your project retype.yml file.

I was able to get a Cloudflare Pages instance of the Retype website working without any issues and I did not make any changes to the project source code of retypeapp/retype.

View the working site at https://pages.retype.com/

Here are my settings within Cloudflare:

Screenshot 2023-10-23 at 7 59 40 AM Screenshot 2023-10-23 at 8 00 01 AM Screenshot 2023-10-23 at 8 00 19 AM

Hope this helps.

AMufInABox commented 8 months ago

Thanks!