loading...

re: Netlify CMS with Gatsby - Best Option with Some Quirks VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I've been using Netlify CMS with Gatsby recently and have been running into exactly the issues that you describe here. I'm interested to know how y...
 

For local development I have to following code in cms.js:

const isDevelopment = process.env.NODE_ENV === 'development';

if (isDevelopment) {
  window.CMS_ENV = 'localhost_development';
  const fileSystemBackend = require('netlify-cms-backend-fs');
  CMS.registerBackend('file-system', fileSystemBackend);
}

config.yml then contains the following:

localhost_development:
  backend:
    name: file-system
    api_root: /api

Checkout the linked files or clone the entire repo to see how it fits together.

code of conduct - report abuse