Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [decap-cms]

Decap CMS (formerly Netlify CMS) is an open source content management system that generates/edits markdown files, which are committed directly to a git repository (like GitHub). The repository is usually set up to then trigger a new build of the website using a static site generator.

13 votes
2 answers
9k views

GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image { ... }"?

I am building a site with gatsby and Netlify CMS. I used the Gatsby Site Starter. I keep getting a "GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image ...
G. Ball.'s user avatar
  • 169
11 votes
2 answers
4k views

How to provide internationalization properly using Gatsby + Netlify CMS

I'm trying to make a multi-language site and faced some problems. Expected behavior: Language automatically changes depends on browser language The user can switch language example: https://tic-tac-...
Ponchique's user avatar
  • 221
10 votes
1 answer
8k views

Next.js: How to get static assets from within getStaticProps

I am using Netlify CMS. I want to import all the slides for a carousel into my component. I made a collection called slider and added a few slides. That created two markdown files (one for each slide) ...
nth-chile's user avatar
  • 715
8 votes
2 answers
3k views

Netlify CMS with self-hosted Gitlab

I have a Gatsby static site that is currently deployed via Zeit Now from a self-hosted Gitlab account. I would like to add Netlify CMS, but it only seems to integrate with a Gitlab.com account. Is ...
Undistraction's user avatar
8 votes
4 answers
7k views

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 ...
Joji's user avatar
  • 5,393
8 votes
1 answer
1k views

Gatsby gatsby-remark-relative-images does not convert yaml absolute image path to relative

I am currently trying to resolve an absolute path in yaml file to relative so it can be query using graphql in gatsby. The absolute path are provided from netlify-cms. When the same path are being ...
Tony Ng Wei Shyang's user avatar
7 votes
1 answer
4k views

How to make a one to many connection between Netlify CMS and Gatsby

I'm using Netlify CMS on a gatsby site. I used the netlify CMS relation widget on my post collection to reference the title field of my author collection, so... - {label: "Author", name: "author", ...
Matt's user avatar
  • 424
6 votes
1 answer
2k views

gatsby/netlify CMS - javascript heap out of memory

Gatsby and Netlify CMS were running nicely for a while but now it fails when trying to run gatsby develop. With a "JavaScript heap out of memory" error. Every npm is updated and I've tried ...
TrevPennington's user avatar
6 votes
1 answer
2k views

Netlify CMS, Gatsby and GitHub authentication without Netlify

Did anyone has luck using OAUTH to authenticate to GB from Netlify CMS but NOT using the Netlify API? If so, what did you use? I want do the authentication with my domain but Im not sure which API or ...
Peter's user avatar
  • 2,324
6 votes
1 answer
285 views

Make an image optional in netlify cms and gatsby js

I have a fairly simple Gatsby & Netlify CMS site. I can't cope with making images optional. In case of Netlify CMS it's just a matter of setting one field required: false. How do I write a query ...
user1346765's user avatar
6 votes
1 answer
2k views

RuntimeError: memory access out of bounds - gatsby development extremely slow

Developing on Gatsby has been over time significantly slowing down - at times taking up 20-30 seconds for the hot loader to refresh the page. After around 10-20 updates to a page - it eventually ...
jchi2241's user avatar
  • 2,194
5 votes
1 answer
1k views

How to get the slug to show up in graphql using NetlifyCMS and Gatsby?

When adding netlify cms to a site how does one go about getting the slug to show up in graphql? I have one collection for a blog post and everything shows up except the slug: backend: name: git-...
André Jarboe II's user avatar
5 votes
1 answer
2k views

Using Netlify's hosted Identity service with self-hosted Netlify CMS

I am hosting my website on my own server, and using Netlify CMS. However, I would still like to use Netlify's hosted Identity and Git Gateway services, instead of running my own.
tech4him's user avatar
  • 980
5 votes
1 answer
607 views

Netlify deploy throws: Error: Invalid version: “1”

Since yesterday I'm facing an error that I haven't been able to fix or to find information about. I can build my site locally without errors but when I try to deploy it in Netlify it fails and throws: ...
Ferran Buireu's user avatar
5 votes
2 answers
1k views

Netlify CMS not able to update/replace image that has been optimized in Gatsby.js

From my markdown file index.md,... --- templateKey: home-page/index image1: /img/City-Picture.jpg --- ...I want to make an optimized image1 available to the graphql here in templates/index.js... ...
Matt's user avatar
  • 821

15 30 50 per page
1
2 3 4 5
20