question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't update the config.yml for gatsby-plugin-netlify-cms

See original GitHub issue

Description

I am using the gatsby-plugin-netlify-cms plugin to work with Local NetlifyCMS on my computer. 1 month ago, I completed basic setup and running NetlifyCMS. However, today my Gatsby project changed the structure as well as updated the new collection, so I updated my config.yml file. However, after the update is finished, I run gatsby-develop and all my updated content is reverted to the previous version before updating. Even when I updated and pushed the config.yml file to github, it still reverted to the old version.

I don’t know what was missing or what to do in the process of updating this file.

Steps to reproduce

  • Checkout branch where config.yml of NetlifyCMS is being configured.
  • Update new config.
  • Restart gatsby with gatsby develop.
  • The config.yml is reverted to the old version when gatsby was re-built.
  • Update the updated content.
  • Push to the git repository.
  • Clone to repository.
  • Run gatsby develop.
  • The config.yml is reverted to the old version when gatsby was re-built.

Expected result

The config.yml file is not changed when gatsby is restarted.

Actual result

The config.yml file is not changed everywhen gatsby is restarted.

Environment

  • OS: MacOS Catalina ver 10.15.4
  • NodeJs: v12.16.3
  • Gatsby CLI version: 2.12.17

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
minhtanphamcommented, May 14, 2020

yeah, you’re right. Sorry my stupid mistake. Thanks @erezrokah for you help. Close this issue

0reactions
erezrokahcommented, May 14, 2020

Hi @mingaldrichgan, looks like you’re editing public/admin/config.yml where you should be editing static/admin/config.yml

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sourcing from Netlify CMS - Gatsby
The plugin you just installed will take care of creating the Netlify CMS app and outputting it to “/admin/index.html”, so you'll want to...
Read more >
Site Redesign - Moving to JAMstack using Gatsby, Netlify, and ...
As I mentioned earlier, most of the development work will fall into the Gatsby bucket, but there is some configuration work needed in...
Read more >
Gatsby with Netlify CMS - Dillion's Blog
The CMS would need a configuration file to work on - config.yml . This file would be located in an static/admin/ . The...
Read more >
Netlify CMS custom preview not working with gatsby
You say import { BlogPostTemplate } from '../../templates/blog-post'. but I can't see a file of that name in that folder?
Read more >
Configuration Options | Netlify CMS | Open-Source Content ...
yml file, in the folder where you access the editor UI (usually in the /admin folder). Alternatively, you can specify a custom config...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found