Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Amazing Cloudflare

  • #10356
    Avatar photo[anonymous]

    Today I did this.

    Registered a domain with Cloudflare.

    They offered me “Pages” which is static hosting. I accepted.

    I made a Publii test site, exported it as a ZIP file.

    Inside Cloudflare Pages, I uploaded the ZIP file.

    That’s it. Website is working.

    DNS takes up to 48 hours. To do this I went to the menu…

    “Workers & Pages” > “Custom Domains” > “Add a custom domain” and added my domain name. Done !

    Now……

    Can we get auto uploaded to Cloudflare please?

    #10357
    Avatar photo[anonymous]

    Did I mention that hosting is free ?

    #10358
    Avatar photo[anonymous]

    @RobNZ

    I have not delved much into the limitations of the free plan.

    Compared to Netlify, in my opinion I think the image lazyload works better or the upload speed itself is better but in this sense Cloudflare is much more recommendable.

    In addition to this, if I’m not mistaken, it has free ddos protection and unlimited bandwidth (which Netlify does not).

    Taking us out of the Github step the implementation is done in a jiffy. They also give a free pages.dev domain.

    I don’t know what more we can ask for at 0 cost.

    #10360
    Avatar photo[anonymous]

    Simplicity for one 🙂

    I have tried AWS S3, Google, Netlify…

    The first two are WAY too complicated. Just look at how long the Publii setup pages are. Crazy. Good grief, these are just simple static sites !!!

    The biggest downside with Cloudflare that I can see is uploading the static website. It needs to be dome manually from their website (it is fast and easy btw). There is an alternative which is to use a command live uploader that Cloudflare provide but IMO this is too messy.

    If Publii had a built in uploaded for Cloudflare, that would be the best.

    But still, Publii > ZIP file, then Upload button > wait 5 seconds > DONE is a pretty good option.

    #10361
    Avatar photo[anonymous]
    #10367
    Avatar photo[anonymous]

    Thanks. I’m not sure that page makes the case clearly that Cloudflare setup is relatively easy…?

    Any change of getting auto-upload added natively into Publii ?

    #10371
    Avatar photo[anonymous]

    You can auto-upload through a GitHub repository as explained in the docs, but of course that means also having a GitHub account.

    Since direct upload seems to necessitate using Wrangler, perhaps it could be implemented as a plugin.

    #10741
    Avatar photo[anonymous]

    I added my custom domain to cloudflare using this github method. How long before the posts revolve on the custom domain. My main domain homepage works on the custom domain but the individual pages are going to github urls

    #10745
    Avatar photo[anonymous]
    [anonymous] wrote:

    I added my custom domain to cloudflare using this github method. How long before the posts revolve on the custom domain. My main domain homepage works on the custom domain but the individual pages are going to github urls

    I had this same problem, you have to change the website URL to your custom domain in the server settings in the Publii app.

    #10760
    Avatar photo[anonymous]

    Hi,

    For anyone interested in use of CloudFlare pages – we have released alpha version with support for git repositories which is much more efficient than current API-based way: https://forum.getpublii.com/topic/git-feature-in-publii-v-0-44-0-alpha/

    #10766
    Avatar photo[anonymous]

    Can someone provide a step by step guide to use the 44 alpha to sync with CloudFlare? I am unsure of how to configure GIT because when I tried it just stuck at “checking connection”…

    #10767
    Avatar photo[anonymous]

    Regarding CloudFlare Pages – you can find useful instructions here: https://getpublii.com/docs/configure-cloudflare-pages-with-publii.html

    Regarding configuring GIT – I suppose that the settings are quite explaining – it is in fact very similiar to Github Pages https://getpublii.com/docs/host-static-website-github-pages.html the main difference is fact that you must put in the Repository URL the full path to the repository for example: https://github.com/YOUR_USERNAME/YOUR_REPOSITORY_NAME.git