Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on /admin #2

Open
Berkmann18 opened this issue Mar 22, 2019 · 5 comments
Open

Error on /admin #2

Berkmann18 opened this issue Mar 22, 2019 · 5 comments

Comments

@Berkmann18
Copy link

Whenever I try to go to http://localhost:8080/admin and click on the link, it leads to this error:
Error Authenticating with GitHub: You must set a site_id with netlify.configure({site_id: "your-site-id"}) to make authentication work from localhost.

Here's what I tried (all of which failed) in config.yml:

backend:
  name: github
  branch: master
  repo: Berkmann18/gridsome-starter-netlifycms
  site_id: compassionate-lalande-822e9b
backend:
  name: github
  branch: master
  repo: Berkmann18/gridsome-starter-netlifycms

site_id: compassionate-lalande-822e9b`
@mittalyashu
Copy link
Owner

As mentioned in the docs of NetlifyCMS.

Note that these are properties of the backend field, and should be nested under that field.

image


Did you got different error in both the cases or the error was same.

@Berkmann18
Copy link
Author

@mittalyashu I tried both and they failed.

@mittalyashu
Copy link
Owner

@Berkmann18 Are you using Netlify Identity feature too?

@mittalyashu mittalyashu pinned this issue Mar 25, 2019
@mittalyashu mittalyashu unpinned this issue Mar 25, 2019
@mittalyashu
Copy link
Owner

mittalyashu commented Mar 25, 2019

@Berkmann18 Try setting a site_domain in the backend options.

@Berkmann18
Copy link
Author

Berkmann18 commented Mar 25, 2019

Are you using Netlify Identity feature too?

Yup.

Try setting a site_domain in the backend options.

I tried setting it to compassionate-lalande-822e9b.netlify.com and I get the same errors in dev and production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants