Skip to content

To use decap CMS on Github pages. Do I have to host the site on Netlify? #79

Open
@RDjarbeng

Description

@RDjarbeng

Describe the bug
I followed the jekyll setup instructions and my site still can't use decap CMS. I followed the instructions here
jekyll guide and here- GitHub backend to setup the GitHub backend.

I followed the steps to setup the identity widget
I have setup the secrets and got the client ID for my project but at the section that says to:

Follow the authentication provider setup steps in the Netlify docs

It says in the netlify docs

When you complete application registration with GitHub, you need to add the Client ID and Client Secret to your Netlify site:

Problem is that the site isn't hosted on Netlify, since it's on Github pages. I assumed I wouldn't have to change the hosting provider. But the remaining steps require a Netlify site to do these steps in the Netlify UI page. Clicking the links takes me to one of my other projects hosted on Netlify so I can enter the client ID and secret.

Go to Site configuration > Access & security > OAuth
Under Authentication Providers, select Install Provider.
Select GitHub and enter the Client ID and Client Secret from earlier, then save.

So this is where I had to stop following the tutorial on the DecapCMS docs. I feel I'm almost there but just missing something.

I tried to look for alternatives and found the section for external OAuth, but it doesn't have a jekyll setup with Github pages
external OAuth

Nevertheless I tried the serverless option and it just confused me more. If anyone knows how to use this I will be grateful for your help.

To Reproduce

Expected behavior

To be able to use Decap CMS on my Github pages website without changing hosting providers

Screenshots

This is what I see when I go to the /admin route.
image

Then it fails at this step
image

Applicable Versions:

  • Decap CMS version:
  • decap-cms-app 3.3.3
    decap-cms.js:sourcemap:393 decap-cms-core 3.4.2
    decap-cms.js:sourcemap:491 decap-cms 3.3.3
  • Git provider: GitHub
  • OS: Windows 11
  • Browser version Version 128.0.6613.138 (Official Build) (64-bit)

CMS configuration

https://github.com/RDjarbeng/RDjarbeng/blob/144fa7e58c3b7c164550c4f619b79ba6130a41cc/admin/config.yml

Additional context

Site is my personal website located at:

https://rdjarbeng.github.io/RDjarbeng/
On GitHub:

https://github.com/RDjarbeng/RDjarbeng

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions