Sign in

deploying to GitHub then cloudflare pages

  • This topic has 3 replies, 2 voices, and was last updated 2 weeks ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6566
    hystedm

    Hi,

    probably user error(!).

    I have managed to deploy my website to Github and set up Github pages to check it works:

    https://hystedm.github.io/markhystedcom/

    The followed the Publii instructions to set Cloudflare pages here:

    https://markhystedcom.pages.dev

    Github pages works fine.

    Issue: The home page from Cloudflare is absolutely fine, all links however are going back to the Github pages, not served via Cloudflare. Links don’t seem to have been transformed, even link for website title.

    Suspect a setting somewhere – anyone help?

    #6567
    hystedm

    Fixed my own problem. Had to change the website URL in Publii server settings to the ultimate URL to be used (in this case the cloudflare one), to ensure the correct links created.

    This I assume would include if you then apply a custom domain.

    Obvious when you think about it – worth adding to top of the Cloudflare guide for others a bit dozy like me?

    #6568
    hystedm

    all sorted, now looking rather beautiful at https://mark.hysted.com

    #6570
    privii

    As a sidenote you don’t need to set up Github Pages if you plan on using Cloudflare Pages, just a regular private Github repo is enough.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.