Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with configuring Netlify CMS with Git Gateway

I am trying to use this Gatsby starter with Netlify CMS. https://github.com/stackrole-dev/gatsby-starter-foundation

I followed the instructions exactly but after enabling Git Gateway, when I try to login in as admin I encountered this error massage.

Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.

I have no ideas why it is not working.

My config.yml is

backend:
  name: git-gateway
  commit_messages:
    create: 'Create {{collection}} “{{slug}}”'
    update: 'Update {{collection}} “{{slug}}”'
    delete: 'Delete {{collection}} “{{slug}}”'
    uploadMedia: '[skip ci] Upload “{{path}}”'
    deleteMedia: '[skip ci] Delete “{{path}}”'

local_backend: true # run npx netlify-cms-proxy-server for local testing

media_folder: "static/assets" 
public_folder: "/assets" 

collections:
like image 407
Joji Avatar asked Jun 04 '20 20:06

Joji


2 Answers

You need to enable your settings for git-gateway and external providers in your Netlify as shown in Netlify documentation:

git-gateway

This configuration can be found under https://app.netlify.com/sites/YOURNAME/settings/identity

In addition, your config.yml lacks:

backend:
  name: git-gateway
  repo: username/repository
  branch: master

Note: change username and repository for your names.

like image 67
Ferran Buireu Avatar answered Sep 22 '22 14:09

Ferran Buireu


You can enable git-gateway

Settings > Identity > Services

enter image description here

like image 21
ufukcam Avatar answered Sep 22 '22 14:09

ufukcam